当前位置:网站首页>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;
边栏推荐
- 抓包整理外篇fiddler————了解工具栏[一]
- 英特尔锐炫A380显卡即将在中国面市
- Initial linear regression
- > Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
- Livedata interview question bank and answers -- 7 consecutive questions for livedata interview~
- Win11如何关闭最近打开项目?Win11关闭最近打开项目的方法
- 【插件-statistic】统计代码行数和相关数据
- 访问网站提示:您未被授权查看该页恢复办法
- 元宇宙标准论坛成立
- 第一次使用gcc和makefile编写c程序
猜你喜欢

字节跳动面试官:一张图片占据的内存大小是如何计算

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

ByteDance Interviewer: how to calculate the memory size occupied by a picture
![[today in history] June 24: Netease was established; The first consumer electronics exhibition was held; The first webcast in the world](/img/f7/b3239802d19d00f760bb3174649a89.jpg)
[today in history] June 24: Netease was established; The first consumer electronics exhibition was held; The first webcast in the world

JDBC与MySQL数据库

PSM总结
![[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code](/img/ef/a26127284fe57ac049a4313d89cf97.png)
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code

Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021

【活动早知道】LiveVideoStack近期活动一览
![[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
随机推荐
Character interception triplets of data warehouse: substrb, substr, substring
买股票应该下载什么软件最好最安全?
英特尔锐炫A380显卡即将在中国面市
[fuzzy neural network] simulation of fuzzy neural network based on MATLAB
第一次使用gcc和makefile编写c程序
Mysql database foundation: DML data operation language
树莓派-环境设置和交叉编译
[block coding] simulation of image block coding based on MATLAB
目标检测|SSD原理与实现
Mixed programming of C language and assembly language in stm32
[today in history] June 18: JD was born; The online store platform Etsy was established; Facebook releases Libra white paper
[inverted pendulum control] Simulink simulation of inverted pendulum control based on UKF unscented Kalman filter
分布式事务TCC浅析
[today in history] June 16: Oracle Bone Inscriptions was established; Microsoft MSX was born; The inventor of fast Fourier transform was born
[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born
Opencv -- Hough transform and some problems encountered
Intel Ruixuan A380 graphics card will be launched in China
抓包整理外篇fiddler————了解工具栏[一]
Is it reliable to invest in the inter-bank certificate of deposit fund? Is the inter-bank certificate of deposit fund safe
[today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp