当前位置:网站首页>RichView TRVStyle ParaStyles
RichView TRVStyle ParaStyles
2022-06-28 03:03:00 【lyhoo163】
RichView TRVStyle ParaStyles
One 、ParaStyles
This is a TRVStyle One of the key attributes of : A collection of paragraph styles .
ParaSytle Defines paragraph attributes ,ParaSytle yes TParaInfos Set ,TParaInfo yes TCustomRVParaInfo Subclasses of , Inheritance relationships TObject → TPersistent → TCollectionItem → TCustomRVInfo
property ParaStyles : TParaInfos;It is a paragraph style , Used to define paragraph attributes in a document .
See :
TParaInfos (collection of paragraph styles);
TParaInfo (item in collection of paragraph styles).
Two 、ITEM
stay TRVStyle in ,ParaStyles With ParaStyles[0] The form . Such as :ParaStyles[0], Is the first text style in the collection .ParaStyles[N] among N Value 0..n-1.
3、 ... and 、 attribute
Alignment // Paragraph alignment ,Type TRVAlignment;
LastLineAlignment // Align the next line of paragraphs ,Type TRVLastLineAlignment;
FirstIndent // Indent the first line of the paragraph , use LeftIndent Summarize ;
LeftIndent // Left edge indent ; Use TRVStyle The unit of ;
RightIndent // Indent of the right edge ;
SpaceBefore // Space above paragraph ;
SpaceAfter // The space below the paragraph ;
Border // Borders around paragraphs ; TRvBordes
Background // Paragraph background ;
Tabs // Set of tab stops ;
LineSpacing // Row spacing ;
BiDiMode // Default text orientation ;
Options // Protect , packing
OutlineLevel // Allow to define the title .
Four 、 Related properties
1、LineSpacingType
TRvLineSpacingType(rvlsPercent,rvlsSpaceBetween,rvlsLineHeightAtLeast,rvlsLineHeightExact)
2、TRVAlignment
type
TRVAlignment = (rvaLeft, rvaRight, rvaCenter, rvaJustify, rvaDistribute);
rvaLeft Align paragraphs to the left .
rvaRight Align paragraphs to the right .
rvaCenter Center paragraph .
rvaJustify All lines of the paragraph ( Except for the last line ) By adding spaces between words ( That is, increase the width of space characters ) To align left and right .
The last line is based on LastLineAlignment Property .
rvaDistribute All lines of the paragraph ( Except for the last line ) Align left and right by adding spaces between all characters .
The last line is based on LastLineAlignment Property .
3、TRVLastLineAlignment
type
TRVLastLineAlignment =(rvllaDefault, rvllaLeft, rvllaRight, rvllaCenter, rvllaJustify);
rvllaDefault If the paragraph is aligned from left to right , The line is aligned to the left , Otherwise, the rows are aligned to the right .
rvllaLeft This line is aligned to the left .
rvllaRight This line is aligned to the right .
rvllaCenter This line is centered .
rvllaJustify This line is based on “ alignment ” Property .
4、Bordes
type TBorderStyle = bsNone..bsSingle;
bsNone Borderless r
bsSingle 3D Or topic themed
Related settings :
Border.Color // Color
Border.Width // wide
Border.InternalWidth // Inside width
Border.Style // In frame type
Border.VisibleBorders.Left // Whether to display the left box
Border.VisibleBorders.Top
Border.VisibleBorders.Right
Border.VisibleBorders.Bottom
Border.BorderOffsets.Left // The space between the paragraph content and the border .
Border.BorderOffsets.Top
Border.BorderOffsets.Right
Border.BorderOffsets.Bottom
5、 ... and 、ParaStyles The default value is
TRVStyle in ,ParaStyles The default value is (2 individual ):
Paragraph Style // paragraph style
Centered // Central
6、 ... and 、 Build your own ParaStyles
RVStyle1.ParaStyles.Clear;
with RVStyle1.ParaStyles.Add do begin
StyleName := 'Paragraph 1';
Alignment := rvaLeft; // Paragraph alignment ( left, right, center, justify or distribute)
LastLineAlignment:=rvaLeft; // Align the next line of paragraphs ( Align left , Right alignment , Align center , Align or assign );
FirstIndent:=0; // Indent the first line of the paragraph
LeftIndent:=0; // Left edge indent ;
RightIndent:=0; // Indent of the right edge ;
SpaceBefore:=5; // Space above paragraph ;
SpaceAfter:=5; // The space below the paragraph ;
Border:=:bsNone; // no border
end;
with RVStyle1.ParaStyles.Add do begin
StyleName := 'Paragraph 2';
Alignment := rvaCenter; // Paragraph alignment ( left, right, center, justify or distribute)
LastLineAlignment:=rvaLeft; // Align the next line of paragraphs ( Align left , Right alignment , Align center , Align or assign );
FirstIndent:=0; // Indent the first line of the paragraph
LeftIndent:=0; // Left edge indent ;
RightIndent:=0; // Indent of the right edge ;
SpaceBefore:=5; // Space above paragraph ;
SpaceAfter:=5; // The space below the paragraph ;
Border:=:bsSingle; // There's a border
Border.VisibleBorders.Top:=True; // Whether the border displays
Border.VisibleBorders.Left:=False;
Border.VisibleBorders.Right:=False;
Border.VisibleBorders.Bottom:=True;
end;
边栏推荐
- Feign远程调用fallback回调失败,无效果
- Heartless sword Chinese English bilingual poem 004 Sword
- ADB double click the power key command
- 目标检测|SSD原理与实现
- [today in history] June 23: Turing's birthday; The birth of the founder of the Internet; Reddit goes online
- [today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp
- You got 8K in the 3-year function test, but were overtaken by the new tester. In fact, you are pretending to work hard
- 业内首个!可运行在移动设备端的视频画质主观体验MOS分评估模型!
- 读书,使人内心宁静
- Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
猜你喜欢

Why are so many people keen on big factories because of the great pressure and competition?

isEmpty 和 isBlank 的用法區別

Initial linear regression

Writing C program with GCC and makefile for the first time
![[plug in -statistical] statistics the number of code lines and related data](/img/84/ad5e78f7e0ed86d9c21cabe97b9c8e.png)
[plug in -statistical] statistics the number of code lines and related data

腾讯游戏发布40多款产品与项目 其中12款为新游戏

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

简单ELK配置实现生产级别的日志采集和查询实践

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

2021年软件测试工具总结——模糊测试工具
随机推荐
Writing based on stm32
2-5 basic configuration -win2003 add attack surface
R语言惩罚逻辑回归、线性判别分析LDA、广义加性模型GAM、多元自适应回归样条MARS、KNN、二次判别分析QDA、决策树、随机森林、支持向量机SVM分类优质劣质葡萄酒十折交叉验证和ROC可视化
[today in history] June 20: the father of MP3 was born; Fujitsu was established; Google acquires dropcam
[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze
Heartless sword Chinese English bilingual poem 004 Sword
[postgraduate] bit by bit
What if win11 cannot use dynamic wallpaper? Solution of win11 without dynamic wallpaper
[block coding] simulation of image block coding based on MATLAB
PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
[today in history] June 23: Turing's birthday; The birth of the founder of the Internet; Reddit goes online
榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
《天天数学》连载53:二月二十一日
拾光者,云南白药!
Severe Tire Damage:世界上第一个在互联网上直播的摇滚乐队
无心剑汉英双语诗004.《剑》
字节跳动面试官:一张图片占据的内存大小是如何计算
Review the submission of small papers for 2022 spring semester courses
Flask Foundation: template inheritance + static file configuration
js清空对象和对象的值: