当前位置:网站首页>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的参数设置。
边栏推荐
- GC garbage collection
- Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
- 全国职业院校技能大赛网络安全“splunk“详细配置
- 今日群里分享的面试题
- Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
- C#聯合halcon應用——大華相機采集類
- #yyds干货盘点#SQL聚合查询方法总结
- 产品模块化设计的前世今生
- Test self-study people must see: how to find test items in software testing?
- Understand the structure in C language in one article
猜你喜欢

再回顾集合容器

Object creation
![[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached](/img/c8/a205ddc2835c87efa38808cf31f59e.jpg)
[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached

Review the collection container again

Arduino Stepper库驱动28BYJ-48步进电机测试程序

类加载机制

How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?

HLS4ML进入方法

STC 32位8051单片机开发实例教程 二 I/O工作模式及其配置

How to turn off the boot auto start software in win11
随机推荐
Servlet knowledge points
全国职业院校技能大赛网络安全“splunk“详细配置
C#联合halcon应用——大华相机采集类
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
2022/6/8-2022/6/12
EasyCVR集群视频广场页面切换时,请求流未能终止的问题优化
数据分析师听起来很高大上?了解这几点你再决定是否转型
【蓝桥杯Web】2022年第十三届蓝桥杯Web大学组国赛真题解析
类加载机制
Related concepts of cookies and sessions
【无标题】
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
GC garbage collection
Detailed configuration of network security "Splunk" in national vocational college skills competition
qobject_cast用法
[untitled]
Bind this of the current scope for callback functions in other cases such as timers and delayers
Problems encountered in installing MySQL in docker Ubuntu container
Optimization of video streaming with repeated requests in the case of unstable easygbs network
Arduino Stepper库驱动28BYJ-48步进电机测试程序