当前位置:网站首页>RichView TRVStyle TextStyles
RichView TRVStyle TextStyles
2022-06-28 03:03:00 【lyhoo163】
RichView TRVStyle TextStyles
One 、TextStyles
This is a TRVStyle A key attribute of : Text attribute ( style ) Set .
TextStyle Defines fonts and other text properties .
proerty TextStyles : TFontInfos;
TextSytle yes TfontInfo Set ,TfontInfo yes TCustomRVFontInfo Subclasses of , Inheritance relationships TObject → TPersistent → TCollectionItem → TCustomRVInfo → TCustomRVFontInfo
Two 、ITEM
stay TRVStyle in ,TextStyles With TextStyles[n] The form . Such as :TextStyles[0], Is the first text style in the collection .TextStyles[n] Of N value 0..n-1.
The default color will be carried to the next page after page change , stay HTML file (D3+) Contains this style of character set to store language information ;
In some cases , This style is used as the default style , Therefore, it is recommended to use it as a style for normal text ; Please don't put rvprDoNotAutoSwitch Set to protected mode ;
This style can be used for hypertext , But it is not recommended. .
3、 ... and 、 attribute
StyleName // Style name
FontName // Font name ;
Size // font size
DoubleSize // Double font size ;
Color // text color ;
Style; // Text style ( bold , Italics , Underline , Delete line )(bold, italic, underline, strikeout);
Charset // Font character set ( Used for the unicode Text style ).
BackColor // Text background color ;
UnderlineColor // Underline color ;
UnderlineType // Underline style (normal、double、 Dotted line, etc );
Four 、 Related properties
1、Style
type TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);
type TFontStyles = set of TFontStyle;
2、UnderlineType
type
TRVUnderlineType = (rvutNormal, rvutThick, rvutDouble,rvutDotted, rvutThickDotted,
rvutDashed, rvutThickDashed,
rvutLongDashed, rvutThickLongDashed,
rvutDashDotted, rvutThickDashDotted,
rvutDashDotDotted, rvutThickDashDotDotted);
end;
3、Charset
Specify the character set for the styled text .
property Charset: TRVFontCharset;
because TRichView All text in the is in the form of Unicode Format store , Therefore, this character set is not used when drawing text ( But in some cases ANSIUnicode The character set is still used in the conversion method , To determine the code page for this style of text ( Language )). However , It is strongly recommended to use symbol Fonts ( Such as “symbol”,“Wingdings”,“Webdings”) When you specify SYMBOL_CHATSET.
Be careful : This attribute in FireMonkey There is , It is not used to draw text .
The default value is : DEFAULT_CHARSET
5、 ... and 、TextStyles The default value is
TRVStyle in ,TextStyles The default value is (6 individual ):
Normal text // Normal text
Heading // title
Subheading // Subtitle
Keywords // keyword
Jump 1 // Hypertext 1
Jump 2 // Hypertext 2
6、 ... and 、 Build your own TextStyles
RVStyle1.TextStyles.Clear;
with RVStyle1.TextStyles.Add do begin
StyleName := 'Normal Text';
FontName:=' Song style '; // Font name ;
Size:=11; // font size
DoubleSize // Double font size ;
Color:= clBlack; // text color ;
Style:=[]; // Text style ( bold , Italics , Underline , Delete line )(bold, italic, underline, strikeout);
// Charset:=; // Font character set ( Used for the unicode Text style ).
// BackColor:=clRed; // Text background color ;
// UnderlineColor:=; // Underline color ;
// UnderlineType:=; // Underline style (TRVUnderlineType);
end;
with RVStyle1.TextStyles.Add do begin
StyleName := 'Heading 1';
FontName:=' In black '; // Font name ;
Size:=16; // font size
DoubleSize // Double font size ;
Color:= clBlack; // text color ;
Style:=[fsBold] // Text style ( bold , Italics , Underline , Delete line )(bold, italic, underline, strikeout);
end;
with RVStyle1.TextStyles.Add do begin
StyleName := 'Heading 2';
FontName:=' Song style '; // Font name ;
Size:=14; // font size
DoubleSize // Double font size ;
Color:= clBlack; // text color ;
Style:=[]; // Text style ( bold , Italics , Underline , Delete line )(bold, italic, underline, strikeout);
end;
边栏推荐
- 榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
- AgilePLM异常解决-Session篇
- Heartless sword English Chinese bilingual poem 004 Meditation
- LiveData 面试题库、解答---LiveData 面试 7 连问~
- StaticLayout的使用详解
- 抓包整理外篇fiddler————了解工具栏[一]
- Shuttle uses custompaint to paint basic shapes
- [plug in -statistical] statistics the number of code lines and related data
- Online JSON to plaintext tool
- 新手炒股开户选哪家证券平台办理是最好最安全的
猜你喜欢

Writing C program with GCC and makefile for the first time

PSM总结

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

CMU提出NLP新范式—重构预训练,高考英语交出134高分

2021年软件测试工具总结——模糊测试工具

2-5 basic configuration -win2003 add attack surface

Différences d'utilisation entre IsEmpty et isblank

math_(函数&数列)极限的含义&误区和符号梳理/邻域&去心邻域&邻域半径

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

Gateway微服务路由使微服务静态资源加载失败
随机推荐
3年功能测试拿8K,被刚来的测试员反超,其实你在假装努力
PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
Gateway微服務路由使微服務靜態資源加載失敗
isEmpty 和 isBlank 的用法區別
How to run unity webgl after packaging (Firefox configuration)
2-5基础配置-Win2003增加攻击面
[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
横向滚动的RecycleView一屏显示五个半,低于五个平均分布
Win11 ne peut pas faire glisser l'image sur le logiciel de la barre des tâches
测试要掌握的技术有哪些?软件测试必懂的数据库设计大全篇
腾讯游戏发布40多款产品与项目 其中12款为新游戏
[today in history] June 24: Netease was established; The first consumer electronics exhibition was held; The first webcast in the world
js清空对象和对象的值:
[today in history] June 19: iPhone 3GS launched; Pascal was born; Anti terrorist elite begins testing
windows 2003 64位系统php运行报错:1% 不是有效的 win32 应用程序
[fuzzy neural network] simulation of fuzzy neural network based on MATLAB
[kotlin] basic introduction and understanding of its syntax in Android official documents
Initial linear regression
PSM总结
Reprinted article: the digital economy generates strong demand for computing power Intel releases a number of innovative technologies to tap the potential of computing power