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


边栏推荐
- mysql中的字段问题
- The reasons why there are so many programming languages in programming internal skills
- 软件测试工作那么难找,只有外包offer,我该去么?
- Comprehensively develop the main channel of digital economy and digital group, and actively promote the utonmos digital Tibet market
- [how to earn a million passive income]
- Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
- MapReduce实现矩阵乘法–实现代码
- Red Hat Satellite 6:更好地管理服务器和云
- PHP maze game
- Universal dividend source code, supports the dividend of any B on the BSC
猜你喜欢

常见的几种最优化方法Matlab原理和深度分析

MyCms 自媒体商城 v3.4.1 发布,使用手册更新

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
![[technology development-24]: characteristics of existing IOT communication technology](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[technology development-24]: characteristics of existing IOT communication technology

The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can

Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases

【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明

SQL Injection (AJAX/JSON/jQuery)

Unity embeddedbrowser browser plug-in event communication
![[技術發展-24]:現有物聯網通信技術特點](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[技術發展-24]:現有物聯網通信技術特點
随机推荐
Ubuntu 14.04 下开启PHP错误提示
RichView TRVStyle ListStyle 列表样式(项目符号编号)
Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
JS convert pseudo array to array
Father and basketball
Flutter动态化 | Fair 2.5.0 新版本特性
windos 创建cordova 提示 因为在此系统上禁止运行脚本
The principle of human voice transformer
json序列化时案例总结
掌握Cypress命令行选项,是真正掌握Cypress的基础
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
Smbms project
Mastering the cypress command line options is the basis for truly mastering cypress
Task6: using transformer for emotion analysis
Road construction issues
Introduction to the implementation principle of rxjs observable filter operator