Vcl.ComCtrls.TTextAttributes

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TPersistentSystem.TObjectTTextAttributes

Delphi

TTextAttributes = class(TPersistent)

C++

class PASCALIMPLEMENTATION TTextAttributes : public System::Classes::TPersistent

Properties

Type Visibility Source Unit Parent
class public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

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

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.

See Also