当前位置:网站首页>RichView TRVStyle ParaStyles
RichView TRVStyle ParaStyles
2022-06-28 01:23:00 【lyhoo163】
RichView TRVStyle ParaStyles
一、ParaStyles
这是TRVStyle的关键属性之一:段落样式的集合。
ParaSytle定义了段落属性,ParaSytle是 TParaInfos的集合,TParaInfo是TCustomRVParaInfo的子类,继承关系TObject → TPersistent → TCollectionItem → TCustomRVInfo
property ParaStyles : TParaInfos;它是段落样式,用来定义文档中的段落属性。
参见:
TParaInfos (collection of paragraph styles);
TParaInfo (item in collection of paragraph styles).
二、ITEM
在TRVStyle中,ParaStyles以ParaStyles[0]形式存在。如:ParaStyles[0],就是集合中的第一个文本样式。ParaStyles[N] 其中N的值 0..n-1。
三、属性
Alignment // 段落进行对齐,Type TRVAlignment;
LastLineAlignment // 下一行段落进行对齐,Type TRVLastLineAlignment;
FirstIndent // 段落第一行的缩进,用LeftIndent进行总结;
LeftIndent // 左边缘缩进; 使用TRVStyle的单位;
RightIndent // 右边缘的缩进;
SpaceBefore // 段落上方间隔;
SpaceAfter // 段落下方的空格;
Border // 段落周围的边框; TRvBordes
Background // 段落背景;
Tabs // 制表位的集;
LineSpacing // 行间距;
BiDiMode // 默认文本方向;
Options // 保护,包装
OutlineLevel // 允许定义标题。
四、相关属性
1、LineSpacingType
TRvLineSpacingType(rvlsPercent,rvlsSpaceBetween,rvlsLineHeightAtLeast,rvlsLineHeightExact)
2、TRVAlignment
type
TRVAlignment = (rvaLeft, rvaRight, rvaCenter, rvaJustify, rvaDistribute);
rvaLeft 段落向左对齐。
rvaRight 段落向右对齐。
rvaCenter 段落居中。
rvaJustify 段落的所有行(除了最后一行)通过在字与字之间增加空格(即增加空格字符的宽度)来左右对齐。
最后一行根据LastLineAlignment属性进行对齐。
rvaDistribute 段落的所有行(除了最后一行)通过在所有字符之间添加空格左右对齐。
最后一行根据LastLineAlignment属性进行对齐。
3、TRVLastLineAlignment
type
TRVLastLineAlignment =(rvllaDefault, rvllaLeft, rvllaRight, rvllaCenter, rvllaJustify);
rvllaDefault 如果段落从左到右对齐,则行向左对齐,否则行向右对齐。
rvllaLeft 这条线向左对齐。
rvllaRight 这条线向右对齐。
rvllaCenter 这条线居中。
rvllaJustify 该行根据“对齐”属性进行对齐。
4、Bordes
type TBorderStyle = bsNone..bsSingle;
bsNone 无边界r
bsSingle 3D或主题themed
相关设置:
Border.Color // 颜色
Border.Width // 宽
Border.InternalWidth // 内部宽度
Border.Style // 框内类型
Border.VisibleBorders.Left // 是否显示左框
Border.VisibleBorders.Top
Border.VisibleBorders.Right
Border.VisibleBorders.Bottom
Border.BorderOffsets.Left // 段落内容和边框之间的间距。
Border.BorderOffsets.Top
Border.BorderOffsets.Right
Border.BorderOffsets.Bottom
五、ParaStyles默认值
TRVStyle中,ParaStyles默认值(2个):
Paragraph Style // 段落样式
Centered // 中心的
六、建立自己的ParaStyles
RVStyle1.ParaStyles.Clear;
with RVStyle1.ParaStyles.Add do begin
StyleName := 'Paragraph 1';
Alignment := rvaLeft; // 段落进行对齐( left, right, center, justify or distribute)
LastLineAlignment:=rvaLeft; // 下一行段落进行对齐(左对齐,右对齐,居中对齐,对齐或分配);
FirstIndent:=0; // 段落第一行的缩进
LeftIndent:=0; // 左边缘缩进;
RightIndent:=0; // 右边缘的缩进;
SpaceBefore:=5; // 段落上方间隔;
SpaceAfter:=5; // 段落下方的空格;
Border:=:bsNone; // 无边框
end;
with RVStyle1.ParaStyles.Add do begin
StyleName := 'Paragraph 2';
Alignment := rvaCenter; // 段落进行对齐( left, right, center, justify or distribute)
LastLineAlignment:=rvaLeft; // 下一行段落进行对齐(左对齐,右对齐,居中对齐,对齐或分配);
FirstIndent:=0; // 段落第一行的缩进
LeftIndent:=0; // 左边缘缩进;
RightIndent:=0; // 右边缘的缩进;
SpaceBefore:=5; // 段落上方间隔;
SpaceAfter:=5; // 段落下方的空格;
Border:=:bsSingle; // 有边框
Border.VisibleBorders.Top:=True; // 边框是否显示
Border.VisibleBorders.Left:=False;
Border.VisibleBorders.Right:=False;
Border.VisibleBorders.Bottom:=True;
end;
边栏推荐
- [kotlin] basic introduction and understanding of its syntax in Android official documents
- 音视频技术开发周刊 | 251
- 树莓派-环境设置和交叉编译
- 迪赛智慧数——柱状图(折柱混合图):2021年毕业季租房价格和房租收入比
- Mysql database foundation: DML data operation language
- How to systematically learn LabVIEW?
- 如何开启多语言文本建议?Win11打开多语言文本建议的方法
- PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
- [elevator control system] design of elevator control system based on VHDL language and state machine, using state machine
- [today in history] June 24: Netease was established; The first consumer electronics exhibition was held; The first webcast in the world
猜你喜欢
![[today in history] June 23: Turing's birthday; The birth of the founder of the Internet; Reddit goes online](/img/d5/4b3e622ab77bc546ca5d285ef67d8a.jpg)
[today in history] June 23: Turing's birthday; The birth of the founder of the Internet; Reddit goes online

Writing based on stm32

Single page application (SPA) hash route and historical API route

Usage details of staticlayout

How to judge that the thread pool has completed all tasks?
![[today in history] June 18: JD was born; The online store platform Etsy was established; Facebook releases Libra white paper](/img/88/6cdd2b604522261e2a88020c5d6ae7.jpg)
[today in history] June 18: JD was born; The online store platform Etsy was established; Facebook releases Libra white paper

Moving Tencent to the cloud: half of the evolution history of cloud server CVM

Win11不能拖拽圖片到任務欄軟件上快速打開怎麼辦

The graduation season is coming, and the number of college graduates in 2022 has exceeded 10 million for the first time

Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
随机推荐
抓包整理外篇fiddler————了解工具栏[一]
[today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on
MFC common current path
Gateway微服務路由使微服務靜態資源加載失敗
无心剑英汉双语诗004.《静心》
"Everyday Mathematics" serial 53: February 21
Mysql database operation - stored procedure, view, transaction, index, database backup
isEmpty 和 isBlank 的用法區別
Gateway微服务路由使微服务静态资源加载失败
在线JSON转PlainText工具
Shuttle uses custompaint to paint basic shapes
PSM总结
【倒立摆控制】基于UKF无迹卡尔曼滤波的倒立摆控制simulink仿真
[today in history] June 19: iPhone 3GS launched; Pascal was born; Anti terrorist elite begins testing
Basic flask: template rendering + template filtering + control statement
Get 5 offers after being notified of layoffs
2021年软件测试工具总结——模糊测试工具
You got 8K in the 3-year function test, but were overtaken by the new tester. In fact, you are pretending to work hard
The first place on the list - the carrying rate of front-end equipment is up to 10%, and the top 10 suppliers of digital key solutions
be fond of the new and tired of the old? Why do it companies prefer to spend 20K on recruiting rather than raise salaries to retain old employees