当前位置:网站首页>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;
边栏推荐
- [today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp
- [cloud native] - docker installation and deployment of distributed database oceanbase
- isEmpty 和 isBlank 的用法区别
- Flashtext, a data cleaning tool, has directly increased the efficiency by dozens of times
- CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English
- How does win11 close recently opened projects? Win11 method to close recently opened projects
- Feign远程调用fallback回调失败,无效果
- [today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on
- 如何判断线程池已经执行完所有任务了?
- 拾光者,云南白药!
猜你喜欢

JDBC与MySQL数据库

Gateway microservice routing failed to load microservice static resources
![[today in history] June 17: the creator of the term](/img/00/30ccc2f54415a6aca000c42e277dc3.png)
[today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on
![[today in history] June 8: the father of the world wide web was born; PHP public release; IPhone 4 comes out](/img/1b/31b5adbec5182207c371a23e41baa3.png)
[today in history] June 8: the father of the world wide web was born; PHP public release; IPhone 4 comes out

树莓派-环境设置和交叉编译

Review the submission of small papers for 2022 spring semester courses
![抓包整理外篇fiddler————了解工具栏[一]](/img/5f/24fd110a73734ba1638f0aad63c787.png)
抓包整理外篇fiddler————了解工具栏[一]

喜新厌旧?IT公司为什么宁愿花20k招人,也不愿涨薪留住老员工

Simple file transfer protocol TFTP
![[today in history] June 13: parent-child disputes in packet switched networks; The founder of game theory was born; The embryonic form of interactive television](/img/2c/01e3be3c5b4f8e6a7853547ffd1bbd.png)
[today in history] June 13: parent-child disputes in packet switched networks; The founder of game theory was born; The embryonic form of interactive television
随机推荐
第一次使用gcc和makefile编写c程序
PSM summary
A low-cost method to increase private domain traffic with simple maintenance
PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
Which securities platform is the best and safest for a novice to open a stock trading account
抓包整理外篇fiddler————了解工具栏[一]
拾光者,云南白药!
[plug in -statistical] statistics the number of code lines and related data
You got 8K in the 3-year function test, but were overtaken by the new tester. In fact, you are pretending to work hard
[2D code image correction and enhancement] simulation of 2D code image correction and enhancement processing based on MATLAB
Flask Foundation: template inheritance + static file configuration
在线JSON转PlainText工具
Publicity of the third batch of shortlisted enterprises! Annual Top100 smart network supplier selection
JDBC与MySQL数据库
TensorRT 模型推理优化实现
Review the submission of small papers for 2022 spring semester courses
PSM总结
音视频技术开发周刊 | 251
math_ (function & sequence) meaning of limit & misunderstanding and symbol sorting / neighborhood & de centring neighborhood & neighborhood radius
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established