|
TCustomRVFontInfo |
Top Previous Next |
|
This is an ancestor class for TFontInfo (class of item in collection of text styles). TCustomRVFontInfo introduces the most of properties of text style. Unit RVStyle. Syntax TCustomRVFontInfo = class(TCustomRVInfo) HierarchyTObject TPersistent TCollectionItem PropertiesFont attributes (similar to properties of TFont): ▪FontName – font name; ▪Size – font size; ▪Color – text color; ▪Style – text styles (bold, italic, underline, strikeout); ▪Charset – font character set (for non-Unicode text styles). Additional properties affecting text appearance and layout: ▪BackColor – text background color; ▪UnderlineColor – underline color; ▪UnderlineType – underline style (normal, double, dotted, etc.); ▪StyleEx – additional text styles (overline, all-caps); ▪SubSuperScriptType – normal text/subscript/superscript; ▪VShift moves text up or down from its base line; ▪CharScale – horizontal character scaling; ▪CharSpacing – spacing between characters; ▪BiDiMode – default text direction. Hypertext properties: ▪Jump – "is this a hypertext style?" ▪HoverColor – text highlight color; ▪HoverBackColor – text background highlight color; ▪HoverUnderlineColor – underline highlight color; ▪HoverEffects – additional highlight effects (underline); ▪JumpCursor – mouse cursor for this text. Properties related to editing in TCustomRichViewEdit: ▪Protection – text protection options. Properties related to text export: ▪Options allows to create RTF and HTML codes. MethodsIsEqual compares this text style with another one. You can use Assign method to assign: ▪TCustomRVFontInfo to TCustomRVFontInfo; ▪TFont to TCustomRVFontInfo; ▪TCustomRVFontInfo to TFont. See AlsoClasses: ▪TFontInfo – class inherited from this class, a text style; ▪TFontInfos – collection of text styles (TFontInfo). |