当前位置:网站首页>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版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- Five ways to query MySQL field comments!
- Wechat applet: new independent backstage Yuelao office one yuan dating blind box
- Express routing, express middleware, using express write interface
- Educational Codeforces Round 122 (Rated for Div. 2) ABC
- DOM basic syntax
- 19. Delete the penultimate node of the linked list
- Interesting practice of robot programming 15- autoavoidobstacles
- Win: add general users to the local admins group
- Tla+ through examples (XI) -- propositional logic and examples
- MySQL REGEXP:正则表达式查询
猜你喜欢
![[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39](/img/60/d5951ffb4cc271d2e7a3add9293f23.png)
[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39

Do you know the eight signs of a team becoming agile?

Express routing, express middleware, using express write interface

Blue Bridge Cup Square filling (DFS backtracking)

JS implementation determines whether the point is within the polygon range

微信小程序;胡言乱语生成器

"2022" is a must know web security interview question for job hopping

Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income

Codeforces Global Round 19 ABC

Comment mettre en place une équipe technique pour détruire l'entreprise?
随机推荐
187. Repeated DNA sequence - with unordered_ Map basic content
Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income
Exploration and practice of integration of streaming and wholesale in jd.com
phpstrom设置函数注释说明
Do you know the eight signs of a team becoming agile?
Common bit operation skills of C speech
PHP 基础篇 - PHP 中 DES 加解密详解
Comment mettre en place une équipe technique pour détruire l'entreprise?
微信小程序:全网独家小程序版本独立微信社群人脉
JS implementation determines whether the point is within the polygon range
Roads and routes -- dfs+topsort+dijkstra+ mapping
Win: add general users to the local admins group
WCF: expose unset read-only DataMember property- WCF: Exposing readonly DataMember properties without set?
【CTF】AWDP总结(Web)
One plus six brushes into Kali nethunter
Introduction to redis (1)
Win:使用组策略启用和禁用 USB 驱动器
Armv8-a programming guide MMU (3)
Runc hang causes the kubernetes node notready
batchnorm. Py this file single GPU operation error solution