当前位置:网站首页>RichView TRVStyle ListStyle 列表样式(项目符号编号)
RichView TRVStyle ListStyle 列表样式(项目符号编号)
2022-07-03 13:10:00 【lyhoo163】
RichView TRVStyle ListStyle 列表样式(项目符号编号)
一、ListStyle
这是TRVStyle的关键属性之一:段落列表样式(项目符号和编号)的集合。
TObject->TPersistent->TCollectionItem->TCustomRVInfo
property ListStyles : TRVListInfos;
项目符号/编号(列表)的实现方式如下:
1.TRVStyle有一个列表样式的集合(这个属性)。每个列表样式包含一个列表级别的集合(级别属性)。列表级别定义了大多数列表属性。
2.列表标记是一种特殊类型的项。它们是用特殊函数插入的。它们总是插入到段落的开头。它们具有以下特性:
二、相关属性
列表属性
ListNo 列表样式集合中的列表样式索引(即在该属性中);
LevelNo 名单级别;
StartFrom 列表计数器的起始值,如果UseStartFrom=True;
UseStartFrom 如果为True,此标记的列表计数器值由StartFrom定义。如果为False,则继续编号。
布局属性
FirstIndent 首行缩进
LeftIndent 左缩进
MarkerIndent 标号缩进
MarkerAlignment 标号对齐
大纲标记属性
ListType 标记类型
Font 字体
Picture 图片
ImageList 图像列表
ImageIndex 图像列表次序
FormatString 格式字符串
FormatStringW 格式字符串
编号列表属性
StartFrom 编号列表的起始数
Options 列表大纲类型
2rvloContinuous 预留属性
2rvloLevelReset 重新编号
2rvloLegalStyle Numbering
大纲预览
OneLevelPreview 被应用程序用来为这种大纲样式定义预览缩略图
三、方法
AllNumbered 判断是否都被编号,如果大纲都是编号大纲,返回True
HasNumbering 判断是否有编号大纲,如果有编号大纲,返回True
四、ApplyListStyle 方法
TCustomRichViewEdit.ApplyListStyle: 对选定段落应用列表样式(项目符号或编号)
procedure ApplyListStyle(AListNo, AListLevel, AStartFrom: Integer; AUseStartFrom, ARecursive: Boolean); // 此方法为所选段落添加/更改列表标记。
参数
AListNo 定义列表的样式。这是列表样式集合中的一个索引(Style.ListStyles)
AListLevel 列表级别。这是列表级别集合中的一个索引(Style.ListStyles[AListNo]. levels)。
如果AListLevel=-1,现有标记的级别不更改,新标记的级别为0。
AStartFrom 标记的列表计数器的值。
如果AUseStartFrom=True,并且这是一个编号列表,则AStartFrom定义这个标记的列表计数器的值。如果AUseStartFrom=False,编号将继续。对于项目符号列表,这些参数将被忽略。
ARecursive 保留供将来使用。设置为False。
四、TRVListLevel.Options 参数设置大纲模式
type
TRVListLevelOption = (rvloContinuous, rvloLevelReset, rvloLegalStyleNumbering);
TRVListLevelOptions = set of TRVListLevelOption;
如果rvloLevelReset在Options中,编号将像这样:

如果rvloLevelReset在Options中被排除,编号将像这样:

如果rvloLegalStyleNumbering在Options中,则所有更高级别的罗马数字和阿尔法数字将被改为小数,如下所示:

否则:

rvloContinuous保留供将来使用。
默认:
[rvloContinuous, rvloLevelReset]
五、TRVListLevel.MarkerIndent布局属性
FirstIndent、LeftIndent、MarkerIndent、MarkerAlignment设置效果:


边栏推荐
- 顺序表(C语言实现)
- 阿南的疑惑
- 106. 如何提高 SAP UI5 应用路由 url 的可读性
- [redis] cache warm-up, cache avalanche and cache breakdown
- 已解决TypeError: Argument ‘parser‘ has incorrect type (expected lxml.etree._BaseParser, got type)
- Setting up remote links to MySQL on Linux
- Libuv Library - Design Overview (Chinese version)
- Annotation and reflection
- Asp. Net core1.1 without project JSON, so as to generate cross platform packages
- Logseq 评测:优点、缺点、评价、学习教程
猜你喜欢

User and group command exercises

Flink SQL knows why (19): the transformation between table and datastream (with source code)

Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu

Today's sleep quality record 77 points

JSP and filter

Libuv库 - 设计概述(中文版)

AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!

Mycms we media mall v3.4.1 release, user manual update

Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)

Logseq 评测:优点、缺点、评价、学习教程
随机推荐
Mysql database basic operation - regular expression
Will Huawei be the next one to fall
8皇后问题
SwiftUI 开发经验之作为一名程序员需要掌握的五个最有力的原则
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
Spark practice 1: build spark operation environment in single node local mode
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
MapReduce实现矩阵乘法–实现代码
Resource Cost Optimization Practice of R & D team
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
[sort] bucket sort
Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
json序列化时案例总结
The network card fails to start after the cold migration of the server hard disk
[redis] cache warm-up, cache avalanche and cache breakdown
php:  The document cannot be displayed in Chinese
Heap structure and heap sort heapify
Several common optimization methods matlab principle and depth analysis
106. 如何提高 SAP UI5 应用路由 url 的可读性
静态链表(数组的下标代替指针)