当前位置:网站首页>Richview trvstyle liststyle list style (bullet number)
Richview trvstyle liststyle list style (bullet number)
2022-07-03 13:47:00 【lyhoo163】
RichView TRVStyle ListStyle A list of the style ( Bullet number )
One 、ListStyle
This is a TRVStyle One of the key attributes of : Paragraph list style ( Bullets and numbers ) Set .
TObject->TPersistent->TCollectionItem->TCustomRVInfo
property ListStyles : TRVListInfos;
Bullet / Number ( list ) The implementation of is as follows :
1.TRVStyle There is a list style collection ( This attribute ). Each list style contains a list level collection ( Level attribute ). The list level defines most of the list properties .
2. A list tag is a special type of item . They are inserted with special functions . They are always inserted at the beginning of the paragraph . They have the following characteristics :
Two 、 Related properties
A list of attributes
ListNo List style index in the list style collection ( That is, in this attribute );
LevelNo List level ;
StartFrom The starting value of the list counter , If UseStartFrom=True;
UseStartFrom If True, The list counter value of this tag is determined by StartFrom Definition . If False, Then continue numbering .
Layout properties
FirstIndent The first line indentation
LeftIndent Left
MarkerIndent Label indent
MarkerAlignment Label alignment
Outline tag properties
ListType Tag type
Font typeface
Picture picture
ImageList Image list
ImageIndex Image list order
FormatString Format string
FormatStringW Format string
Numbered list attribute
StartFrom The starting number of the numbered list
Options List outline type
2rvloContinuous Reserved properties
2rvloLevelReset Renumber
2rvloLegalStyle Numbering
Outline preview
OneLevelPreview Used by applications to define preview thumbnails for this outline style
3、 ... and 、 Method
AllNumbered Determine whether they are numbered , If the outline is numbered , return True
HasNumbering Determine whether there is a numbered outline , If there is a numbered outline , return True
Four 、ApplyListStyle Method
TCustomRichViewEdit.ApplyListStyle: Apply a list style to the selected paragraph ( Bullet or number )
procedure ApplyListStyle(AListNo, AListLevel, AStartFrom: Integer; AUseStartFrom, ARecursive: Boolean); // This method adds / Change the list tag .
Parameters
AListNo Define the style of the list . This is an index in the list style collection (Style.ListStyles)
AListLevel List level . This is an index in the list level collection (Style.ListStyles[AListNo]. levels).
If AListLevel=-1, The level of existing tags does not change , The level of the new tag is 0.
AStartFrom The value of the tagged list counter .
If AUseStartFrom=True, And this is a numbered list , be AStartFrom Define the value of the list counter for this tag . If AUseStartFrom=False, Numbering will continue . For bulleted lists , These parameters will be ignored .
ARecursive Reserved for future use . Set to False.
Four 、TRVListLevel.Options Parameter setting outline mode
type
TRVListLevelOption = (rvloContinuous, rvloLevelReset, rvloLegalStyleNumbering);
TRVListLevelOptions = set of TRVListLevelOption;
If rvloLevelReset stay Options in , The number will look like this :
If rvloLevelReset stay Options Excluded , The number will look like this :
If rvloLegalStyleNumbering stay Options in , Then all higher-level Roman and alpha numbers will be changed to decimal , As shown below :
otherwise :
rvloContinuous Reserved for future use .
Default :
[rvloContinuous, rvloLevelReset]
5、 ... and 、TRVListLevel.MarkerIndent Layout properties
FirstIndent、LeftIndent、MarkerIndent、MarkerAlignment Set the effect :
边栏推荐
- Unity Render Streaming通过Js与Unity自定义通讯
- Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
- 【被动收入如何挣个一百万】
- 网上开户哪家证券公司佣金最低,我要开户,网上客户经理开户安全吗
- 静态链表(数组的下标代替指针)
- 软件测试工作那么难找,只有外包offer,我该去么?
- IBEM 数学公式检测数据集
- php 迷宫游戏
- 栈应用(平衡符)
- ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
猜你喜欢
随机推荐
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
JSP and filter
Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:
Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
JSON serialization case summary
Ocean CMS vulnerability - search php
TensorBoard可视化处理案例简析
Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
Resolved (error in viewing data information in machine learning) attributeerror: target_ names
mysql更新时条件为一查询
This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version
栈应用(平衡符)
logback日志的整理
PhpMyAdmin stage file contains analysis traceability
Flutter dynamic | fair 2.5.0 new version features
编程内功之编程语言众多的原因
The principle of human voice transformer
Resource Cost Optimization Practice of R & D team
Can newly graduated European college students get an offer from a major Internet company in the United States?