当前位置:网站首页>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版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- R language uses logistic regression and afrima, ARIMA time series models to predict world population
- How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning
- Redis' hyperloglog as a powerful tool for active user statistics
- Main window in QT application
- JVM's responsibility - load and run bytecode
- Win: use PowerShell to check the strength of wireless signal
- After reading the average code written by Microsoft God, I realized that I was still too young
- 力扣剑指offer——二叉树篇
- Codeforces Round #770 (Div. 2) ABC
- batchnorm. Py this file single GPU operation error solution
猜你喜欢
MATLB | multi micro grid and distributed energy trading
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
MySQL REGEXP:正则表达式查询
Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
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
Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
Stored procedure and stored function in Oracle
After reading the average code written by Microsoft God, I realized that I was still too young
Nebula Importer 数据导入实践
Hedhat firewall
随机推荐
"2022" is a must know web security interview question for job hopping
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
One click generation and conversion of markdown directory to word format
[Chongqing Guangdong education] National Open University spring 2019 1042 international economic law reference questions
Include rake tasks in Gems - including rake tasks in gems
The server time zone value ‘� й ��� ʱ 'is unrecognized or representatives more than one time zone【
Database postragesq role membership
Numpy library introductory tutorial: basic knowledge summary
85.4% mIOU! NVIDIA: using multi-scale attention for semantic segmentation, the code is open source!
PowerShell:在代理服务器后面使用 PowerShell
Main window in QT application
Game 280 of leetcode week
[development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
batchnorm.py这个文件单GPU运行报错解决
DOM basic syntax
Are you still writing the TS type code
Four pits in reentrantlock!
Redis(1)之Redis简介
R语言用logistic逻辑回归和AFRIMA、ARIMA时间序列模型预测世界人口