当前位置:网站首页>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设置效果:
边栏推荐
- JS convert pseudo array to array
- File uploading and email sending
- 掌握Cypress命令行选项,是真正掌握Cypress的基础
- MySQL functions and related cases and exercises
- Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
- Asp. Net core1.1 without project JSON, so as to generate cross platform packages
- 【历史上的今天】7 月 3 日:人体工程学标准法案;消费电子领域先驱诞生;育碧发布 Uplay
- Will Huawei be the next one to fall
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- mysql更新时条件为一查询
猜你喜欢
Resource Cost Optimization Practice of R & D team
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
STM32 and motor development (from MCU to architecture design)
stm32和电机开发(从mcu到架构设计)
Kivy tutorial how to automatically load kV files
Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
Mysql database basic operation - regular expression
Setting up remote links to MySQL on Linux
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
随机推荐
Flink SQL knows why (VIII): the wonderful way to parse Flink SQL tumble window
Libuv库 - 设计概述(中文版)
Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
rxjs Observable filter Operator 的实现原理介绍
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
MySQL_ JDBC
Kivy教程之 如何自动载入kv文件
Smbms project
Elk note 24 -- replace logstash consumption log with gohangout
Spark practice 1: build spark operation environment in single node local mode
Resolved (error in viewing data information in machine learning) attributeerror: target_ names
File uploading and email sending
Convolution emotion analysis task4
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
When updating mysql, the condition is a query
AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
用户和组命令练习
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
HALCON联合C#检测表面缺陷——HALCON例程autobahn