当前位置:网站首页>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 :


边栏推荐
- windos 创建cordova 提示 因为在此系统上禁止运行脚本
- This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version
- The principle of human voice transformer
- Logback log sorting
- untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
- Realize the recognition and training of CNN images, and process the cifar10 data set and other methods through the tensorflow framework
- Ocean CMS vulnerability - search php
- Halcon combined with C # to detect surface defects -- Halcon routine autobahn
- CVPR 2022 | 美团技术团队精选6篇优秀论文解读
- rxjs Observable filter Operator 的实现原理介绍
猜你喜欢

Use docker to build sqli lab environment and upload labs environment, and the operation steps are provided with screenshots.

This math book, which has been written by senior ml researchers for 7 years, is available in free electronic version

Flutter动态化 | Fair 2.5.0 新版本特性

Unity embeddedbrowser browser plug-in event communication

DQL basic query

挡不住了,国产芯片再度突进,部分环节已进到4nm

Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market

106. How to improve the readability of SAP ui5 application routing URL

RichView TRVStyle ListStyle 列表样式(项目符号编号)

掌握Cypress命令行选项,是真正掌握Cypress的基础
随机推荐
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
CVPR 2022 | interpretation of 6 excellent papers selected by meituan technical team
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
106. How to improve the readability of SAP ui5 application routing URL
常见的几种最优化方法Matlab原理和深度分析
PHP maze game
Flutter dynamic | fair 2.5.0 new version features
[556. Next larger element III]
Task6: using transformer for emotion analysis
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
8皇后问题
Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
网上开户哪家证券公司佣金最低,我要开户,网上客户经理开户安全吗
[développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
Can newly graduated European college students get an offer from a major Internet company in the United States?
Heap structure and heap sort heapify
Red Hat Satellite 6:更好地管理服务器和云