当前位置:网站首页>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的参数设置。
边栏推荐
- 上大学后明白了哪些坑人的事?
- 全国职业院校技能大赛网络安全“splunk“详细配置
- PowerDesigner design name and comment replacement
- Arduino stepper library drive 28byj-48 stepper motor test program
- Use of common built-in classes of JS
- 墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
- How to add transactions in JDBC
- 优质笔记软件综合评测和详细盘点(一) Notion、Obsidian、RemNote、FlowUs
- Tensorflow reports an error, could not load dynamic library 'libcudnn so. eight
- Detailed configuration of network security "Splunk" in national vocational college skills competition
猜你喜欢

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?

AAAI2020: Real-time Scene Text Detection with Differentiable Binarization

Win11暂停更新点不了怎么办?Win11暂停更新是灰色的如何解决?

Detailed configuration of network security "Splunk" in national vocational college skills competition
![Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding](/img/56/0c7f39406814b5bf92eca5f6670e10.jpg)
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding

漏洞复现-.Net-ueditor上传

1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack

Interview questions shared in today's group

开发那些事儿:EasyCVR集群设备管理页面功能展示优化

通过js实现金字塔(星号金字塔,回文对称数字金字塔)
随机推荐
list分割成满足和不满足条件的集合(partitioningBy)
JS 之 常用内置类的使用
The key to the success of digital transformation enterprises is to create value with data
Tensorflow reports an error, could not load dynamic library 'libcudnn so. eight
2022/6/8-2022/6/12
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
Battery simulation of gazebo robot
面试题篇一
C # joint halcon Application - Dahua Camera Collection class
Mysql查询结果去除换行
Procédure de mesure du capteur d'accord vibrant par le module d'acquisition d'accord vibrant
Use of common built-in classes of JS
New window open page -window open
How to use console Log print text?
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
Anaconda安装虚拟环境到指定路径
[untitled]
How to prevent repeated submission of new orders
uniapp使用腾讯地图选点 没有window监听回传用户的位置信息,怎么处理
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?