当前位置:网站首页>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 :
边栏推荐
- 挡不住了,国产芯片再度突进,部分环节已进到4nm
- Kivy tutorial how to load kV file design interface by string (tutorial includes source code)
- The network card fails to start after the cold migration of the server hard disk
- Spark practice 1: build spark operation environment in single node local mode
- The shadow of the object at the edge of the untiy world flickers, and the shadow of the object near the far point is normal
- Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
- SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
- IBEM mathematical formula detection data set
- Screenshot of the operation steps of upload labs level 4-level 9
- Bidirectional linked list (we only need to pay attention to insert and delete functions)
猜你喜欢
Use docker to build sqli lab environment and upload labs environment, and the operation steps are provided with screenshots.
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
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
Kivy教程之 如何自动载入kv文件
Logseq 评测:优点、缺点、评价、学习教程
8 Queen question
Flutter动态化 | Fair 2.5.0 新版本特性
[sort] bucket sort
随机推荐
Field problems in MySQL
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
[技术发展-24]:现有物联网通信技术特点
Introduction to the implementation principle of rxjs observable filter operator
Kivy教程之 如何自动载入kv文件
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
rxjs Observable filter Operator 的实现原理介绍
php 迷宫游戏
Red hat satellite 6: better management of servers and clouds
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
json序列化时案例总结
使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
Unity EmbeddedBrowser浏览器插件事件通讯
Flutter动态化 | Fair 2.5.0 新版本特性
The principle of human voice transformer
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
静态链表(数组的下标代替指针)
记录关于银行回调post请求405 问题
Open PHP error prompt under Ubuntu 14.04
Ubuntu 14.04 下开启PHP错误提示