当前位置:网站首页>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版面,已经拓展的功能,如何使用有待进一步学习研究。.
边栏推荐
- 无心剑英译席慕容《无怨的青春》
- Application and development trend of image recognition technology
- Wechat applet: new independent backstage Yuelao office one yuan dating blind box
- PHP 约瑟夫环问题
- Jcenter () cannot find Alibaba cloud proxy address
- Redis' hyperloglog as a powerful tool for active user statistics
- JS implementation determines whether the point is within the polygon range
- Application and Optimization Practice of redis in vivo push platform
- Database postragesql client authentication
- 线上故障突突突?如何紧急诊断、排查与恢复
猜你喜欢

Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)

R language uses logistic regression and afrima, ARIMA time series models to predict world population

Remote control service

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

Armv8-a programming guide MMU (3)

Five ways to query MySQL field comments!

Restful Fast Request 2022.2.1发布,支持cURL导入

Win:使用 Shadow Mode 查看远程用户的桌面会话

Expansion operator: the family is so separated

微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
随机推荐
Wechat applet: independent background with distribution function, Yuelao office blind box for making friends
流批一体在京东的探索与实践
Complex, complicated and numerous: illustration of seven types of code coupling
Roads and routes -- dfs+topsort+dijkstra+ mapping
Introduction to redis (1)
Stored procedure and stored function in Oracle
batchnorm. Py this file single GPU operation error solution
Luo Gu Pardon prisoners of war
Armv8-a programming guide MMU (3)
Remote control service
R language uses logistic regression and afrima, ARIMA time series models to predict world population
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
Database postragesql client connection default
Win:将一般用户添加到 Local Admins 组中
Using openpyxl module to write the binary list into excel file
Win: use PowerShell to check the strength of wireless signal
[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39
Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
phpstrom设置函数注释说明
What is the length of SHA512 hash string- What is the length of a hashed string with SHA512?