当前位置:网站首页>RichView TRVDocParameters 页面参数设置
RichView TRVDocParameters 页面参数设置
2022-07-01 18:57:00 【lyhoo163】
RichView TRVDocParameters 页面设置
一、TRVDocParameters
这是TRichView.DocParameters的一个类型。它包含文档和页面属性,可以写入或从RVF (RichView格式)和RTF(富文本格式)读取。组件不使用这些属性,但是可以使用AssignDocParameters方法将它们分配给TRVPrint。
二、属性:
Units – 页边距、纸张尺寸、页眉和页脚位置的测量单位;
Orientation – 页面朝向;
LeftMargin, RightMargin, TopMargin, BottomMargin – 页边距;
MirrorMargins –允许在偶数页上交换左右边距;
TitlePage 显示/隐藏第一页的页眉和页脚;
FacingPages –显示/隐藏偶数页的页眉和页脚;
ZoomMode – 缩放模式;
ZoomPercent – 缩放百分比.
Author, Title, Comments – 作者,标题,评论-文本属性.
注意:Units的默认值rvuInches(厘米),它的另一值:rvuPixels( 一个单位= 1/Style, 如果Style = nil,值为1/96英寸)
不能对Units直接赋值,应使用ConvertToUnits将所有大小转换为新的单位。
三、设置
procedure TRichView_TEMP_Frm.Button7Click(Sender: TObject);
var DP: TRVDocParameters;
begin
DP := SRichViewEdit1.RichViewEdit.DocParameters;
DP.Units := rvuMillimeters;
DP.PageWidth := 210;
DP.PageHeight := 297;
DP.LeftMargin := 30;
DP.RightMargin := 15;
DP.TopMargin := 20;
DP.BottomMargin := 20;
DP.HeaderY := 10;
DP.FooterY := 10;
end;
以上是通常A4的参数设置。
边栏推荐
- Related concepts of cookies and sessions
- 基于图的 Affinity Propagation 聚类计算公式详解和代码示例
- 开发那些事儿:EasyCVR集群设备管理页面功能展示优化
- Use of common built-in classes of JS
- 关于元宇宙下一代入口——脑机接口的实现
- Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
-
- 有意思了!数据库也搞Serverless!
- 简单但现代的服务器仪表板Dashdot
- Stack Overflow 2022 开发者调查:行业走向何方?
猜你喜欢
Oracle physical architecture
3D全景模型展示可视化技术演示
How to turn off the boot auto start software in win11
Interesting! Database is also serverless!
[research materials] national second-hand housing market monthly report January 2022 - Download attached
SQL getting started plan-1-select
Optimization of video streaming with repeated requests in the case of unstable easygbs network
Solve the problem of slow or failed vscode download
Hls4ml entry method
自定义插入页面标签以及实现类似通讯录的首字母搜索
随机推荐
Oracle physical architecture
How to turn off the boot auto start software in win11
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
Object creation
mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
通过js实现金字塔(星号金字塔,回文对称数字金字塔)
一个悄然崛起的国产软件,低调又强大!
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
js三元表达式复杂条件判断
[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached
JVM memory model
Servlet knowledge points
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
Understand the structure in C language in one article
Cookie和Session的相关概念
较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
[research materials] Huawei Technology ICT 2021: at the beginning of the "Yuan" year, the industry is "new" -- download attached
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
Use of common built-in classes of JS