当前位置:网站首页>RichView TRVStyle MainRVStyle
RichView TRVStyle MainRVStyle
2022-07-05 01:44:00 【lyhoo163】
RichView TRVStyle MainRVStyle
一、TRVStyle
在RichView中,TRVStyle是委重要的环节,它所有字体、段落、Page样式的源头。
在使用RichView时,特别是通过代码创建DOC文档或表格时,尤其重要。
除了以下三个属性:
(1)TEXTSTYLES- 主要是设置一些文本样式;
(2)PARASTYLES- 段落标题样式
(3)LISTSTYLES- 段落标题样式列表
TRVStyle还有二个重要的属性 MainRVStyle。
二、MainRVStyle
1、功能
它是 一个真实样式的集合,控制TextStyles中的文本属性和parastyle中的段落属性。
property StyleTemplates : TRVStyleTemplateCollection;
2、使用模板
1、richview控件,UseStyleTemplates=True;
2、分配MainRVStyle
RVStyle.StyleTemplates返回的就是MainRVStyle.styletemplates中设置的值。
3、TRVStyle.MainRVStyle
为该组件定义主TRVStyle组件。
property MainRVStyle: TRVStyle;
4、属性
如果这个MainRVStyle被赋值,这个TRVStyle对象的几乎所有属性都提供了对MainRVStyle对应属性的访问。
以下属性不受影响:
TextStyles
ParaStyles
ListStyles
所有事件
这个属性允许:
多个编辑器可以处理相同的样式模板集合
简化对其他属性的赋值(一组链接的TRVStyle对象共享属性,所以给其中任何一个赋值就足够了)
如果某个TRichView组件被用作页眉/页脚(并且使用了样式模板),它必须有style.MainRVStyle指定为主编辑器的Style。
srv_icon ScaleRichView 注意:
TSRichViewEdit 提供 srve.RichViewEdit.Style = srve.RVHeader.Style.MainRVStyle = srve.RVFooter.Style.MainRVStyle.
在新RichView20版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- Introduction to redis (1)
- MATLB|多微电网及分布式能源交易
- Pytorch fine tuning (Fortune): hollowed out design or cheating
- Can financial products be redeemed in advance?
- Educational Codeforces Round 122 (Rated for Div. 2) ABC
- 微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
- MATLB | multi micro grid and distributed energy trading
- Numpy library introductory tutorial: basic knowledge summary
- Wechat applet; Gibberish generator
- One click generation and conversion of markdown directory to word format
猜你喜欢

Wechat applet: Xingxiu UI v1.5 WordPress system information resources blog download applet wechat QQ dual end source code support WordPress secondary classification loading animation optimization
![[Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation](/img/9e/4c8557bb4b75b1e74598dedb24af86.jpg)
[Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

One plus six brushes into Kali nethunter

How to build a technical team that will bring down the company?

Nebula Importer 数据导入实践

Roads and routes -- dfs+topsort+dijkstra+ mapping

Wechat applet: independent background with distribution function, Yuelao office blind box for making friends

Nebula importer data import practice
![[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #](/img/1c/deaf20d46e172af4d5e11c28c254cf.jpg)
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
随机推荐
Incremental backup? db full
Do you know the eight signs of a team becoming agile?
PowerShell:在代理服务器后面使用 PowerShell
Yyds dry inventory jetpack hit dependency injection framework Getting Started Guide
Nebula importer data import practice
Win: add general users to the local admins group
【CTF】AWDP总结(Web)
What is the length of SHA512 hash string- What is the length of a hashed string with SHA512?
Are you still writing the TS type code
Luo Gu Pardon prisoners of war
Include rake tasks in Gems - including rake tasks in gems
MATLB|多微电网及分布式能源交易
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Interesting practice of robot programming 15- autoavoidobstacles
Introduction to the gtid mode of MySQL master-slave replication
Database postragesql client connection default
Codeforces Global Round 19 ABC
Restful fast request 2022.2.1 release, support curl import
PowerShell: use PowerShell behind the proxy server
Win: use PowerShell to check the strength of wireless signal