RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextAttributes Class

TTextAttributes represents the font characteristics of a section of text in a rich edit control.

Pascal
TTextAttributes = class(TPersistent);
C++
class TTextAttributes : public TPersistent;

TTextAttributes includes a number of properties that describe the font characteristics of some text in a rich text document. TTextAttributes is tailored to allow a descendant of TCustomRichEdit to read and write the default text characteristics (via its DefAttributes property) or the characteristics of the selected text (via its SelAttributes property). The properties of a TTextAttributes object are invalid unless it is owned by a descendant of TCustomRichEdit

Most of the font characteristics represented by a TTextAttributes object are the same as the properties of a TFont object with the same names. Applications can assign fonts to text attributes and vice versa. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!