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


边栏推荐
- CVPR 2022 | 美团技术团队精选6篇优秀论文解读
- [technology development-24]: characteristics of existing IOT communication technology
- [how to solve FAT32 when the computer is inserted into the U disk or the memory card display cannot be formatted]
- KEIL5出现中文字体乱码的解决方法
- pytorch 载入历史模型时更换gpu卡号,map_location设置
- Can newly graduated European college students get an offer from a major Internet company in the United States?
- Several common optimization methods matlab principle and depth analysis
- Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
- SQL Injection (POST/Select)
- ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
猜你喜欢

Resolved (error in viewing data information in machine learning) attributeerror: target_ names

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

Kivy tutorial how to automatically load kV files
![Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:](/img/2f/33504391a661ecb63d42d75acf3a37.png)
Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:

Ocean CMS vulnerability - search php

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

Complete deep neural network CNN training with tensorflow to complete picture recognition case 2

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

Several common optimization methods matlab principle and depth analysis

MySQL functions and related cases and exercises
随机推荐
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
树的深入和广度优先遍历(不考虑二叉树)
Software testing is so hard to find, only outsourcing offers, should I go?
Go language unit test 4: go language uses gomonkey to test functions or methods
编程内功之编程语言众多的原因
File uploading and email sending
网上开户哪家证券公司佣金最低,我要开户,网上客户经理开户安全吗
Today's sleep quality record 77 points
Mysql database basic operation - regular expression
When updating mysql, the condition is a query
掌握Cypress命令行选项,是真正掌握Cypress的基础
挡不住了,国产芯片再度突进,部分环节已进到4nm
【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
Spark实战1:单节点本地模式搭建Spark运行环境
Ubuntu 14.04 下开启PHP错误提示
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
IBEM 数学公式检测数据集
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!