当前位置:网站首页>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版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- Are you still writing the TS type code
- 無心劍英譯席慕容《無怨的青春》
- 流批一體在京東的探索與實踐
- 142. Circular linked list II
- Common bit operation skills of C speech
- 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
- Introduction to the gtid mode of MySQL master-slave replication
- Nebula Importer 数据导入实践
- Global and Chinese market of portable CNC cutting machines 2022-2028: Research Report on technology, participants, trends, market size and share
- Expansion operator: the family is so separated
猜你喜欢

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

微信小程序:全新独立后台月老办事处一元交友盲盒

Kibana installation and configuration

Stored procedure and stored function in Oracle

Complex, complicated and numerous: illustration of seven types of code coupling

One plus six brushes into Kali nethunter

Nebula Importer 数据导入实践

流批一體在京東的探索與實踐

Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector

微信小程序;胡言乱语生成器
随机推荐
Outlook: always prompt for user password
phpstrom设置函数注释说明
[OpenGL learning notes 8] texture
R语言用logistic逻辑回归和AFRIMA、ARIMA时间序列模型预测世界人口
线上故障突突突?如何紧急诊断、排查与恢复
Classification of performance tests (learning summary)
Win: add general users to the local admins group
JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
He was laid off.. 39 year old Ali P9, saved 150million
STM32 series - serial port UART software pin internal pull-up or external resistance pull-up - cause problem search
Remote control service
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)
PHP 基础篇 - PHP 中 DES 加解密详解
PHP Basics - detailed explanation of DES encryption and decryption in PHP
Yyds dry inventory jetpack hit dependency injection framework Getting Started Guide
Global and Chinese market of nutrient analyzer 2022-2028: Research Report on technology, participants, trends, market size and share
[development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Exploration and practice of integration of streaming and wholesale in jd.com