TextAttributes object

 

TextAttributes object represents the RTF text attributes.

 

Returned by:

RTFEditor.DefAttributes

RTFEditor.SelAttributes

 

 


Derived from: IDispatch


Properties


BackColor Indicates the background color of the text
 
Charset Specifies the character set of the font
 
Color Indicates the foreground color of the text
 
ConsistentAttributes Indicates which of the properties of the TextAttributes object are consistent throughout the text of the current selection in the RTF editor. ConsistentAttributes object has 8 properties (all boolean, read-only): Bold, Color, Face, Italic, Size, Strikeout, Underline, Protected.
 
Height Specifies the height of the font in pixels.
 
Name Specifies the typeface of the font.
 
Pitch Specifies whether the characters in the font all have the same width - FontPitch - fpDefault (0), fpVariable (1), fpFixed (2).
 
Protected

Indicates whether the text is protected

 

 
Size

Specifies the height of the font in points.

 

 
Style

Determines whether the font is normal, italic, underlined, bold, or strikeout. Size property returns the FontStyle object, which has 4 properties (all boolean read/write) - Bold, Italic, Underline, Strikeout.