当前位置:网站首页>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的参数设置。
边栏推荐
- C#聯合halcon應用——大華相機采集類
- 一个悄然崛起的国产软件,低调又强大!
- MYSLQ十种锁,一篇文章带你全解析
- 对金额进行求和
- Use of common built-in classes of JS
- 开发那些事儿:EasyCVR集群设备管理页面功能展示优化
- Interesting! Database is also serverless!
- 实例讲解将Graph Explorer搬上JupyterLab
- Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
- Related concepts of cookies and sessions
猜你喜欢

漏洞复现-.Net-ueditor上传

独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作

Bind this of the current scope for callback functions in other cases such as timers and delayers

再回顾集合容器

Optimization of video streaming with repeated requests in the case of unstable easygbs network

类加载机制

Servlet knowledge points

面试题篇一

开发那些事儿:EasyCVR平台添加播放地址鉴权功能

安装sharp报错
随机推荐
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
【let var const】
Servlet knowledge points
Is Dao safe? Build finance encountered a malicious governance takeover and was looted!
类加载机制
Example explanation: move graph explorer to jupyterlab
数据分析师听起来很高大上?了解这几点你再决定是否转型
上大学后明白了哪些坑人的事?
较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
SwiftUI 4 新功能大全之 Toggle与 Mixed Toggle 多个绑定组件
新增订单如何防止重复提交
list大集合等比分割成多个小list集合
How can a programmer grow rapidly
STC 32位8051单片机开发实例教程 三 程序编译设置与下载
Powerful, easy-to-use, professional editor / notebook software suitable for programmers / software developers, comprehensive evaluation and comprehensive recommendation
PowerDesigner design name and comment replacement
[AI server setup] CUDA environment
Detailed configuration of network security "Splunk" in national vocational college skills competition
Process steps of vibrating wire acquisition module for measuring vibrating wire sensor
一个悄然崛起的国产软件,低调又强大!