当前位置:网站首页>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版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
- [Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation
- A simple SSO unified login design
- "2022" is a must know web security interview question for job hopping
- DOM basic syntax
- Exploration and Practice of Stream Batch Integration in JD
- C basic knowledge review (Part 3 of 4)
- PowerShell:在代理服务器后面使用 PowerShell
- 微信小程序:全网独家小程序版本独立微信社群人脉
- Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and mobile phones can also easily read literature
猜你喜欢
Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio
[swagger]-swagger learning
Wechat applet: new independent backstage Yuelao office one yuan dating blind box
Game 280 of leetcode week
微信小程序:全网独家小程序版本独立微信社群人脉
Five ways to query MySQL field comments!
[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39
One plus six brushes into Kali nethunter
Yyds dry inventory jetpack hit dependency injection framework Getting Started Guide
Main window in QT application
随机推荐
Win: use PowerShell to check the strength of wireless signal
220213c language learning diary
Win: add general users to the local admins group
Nebula importer data import practice
One plus six brushes into Kali nethunter
Database postragesq role membership
Restful fast request 2022.2.1 release, support curl import
Expansion operator: the family is so separated
Stored procedure and stored function in Oracle
179. Maximum number - sort
Behind the cluster listing, to what extent is the Chinese restaurant chain "rolled"?
PHP Basics - detailed explanation of DES encryption and decryption in PHP
WCF: expose unset read-only DataMember property- WCF: Exposing readonly DataMember properties without set?
JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
How to build a technical team that will bring down the company?
Blue Bridge Cup Square filling (DFS backtracking)
当产业互联网时代真正发展完善之后,将会在每一个场景见证巨头的诞生
Database postragesql lock management
Educational Codeforces Round 122 (Rated for Div. 2) ABC
runc hang 导致 Kubernetes 节点 NotReady