From RAD Studio API Documentation
Jump to: navigation, search


property SelAttributes: TTextAttributes read FSelAttributes write SetSelAttributes;


__property TTextAttributes* SelAttributes = {read=FSelAttributes, write=SetSelAttributes};


Type Visibility Source Unit Parent
property public
Vcl.ComCtrls TCustomRichEdit


Describes the rich text characteristics of the selected text in the rich edit control.

Use SelAttributes to discover or set the font characteristics of the currently selected text. SelAttributes specifies characteristics such as font face, color, size, style, and pitch. To change a single attribute of the currently selected text, read SelAttributes, and set one of its properties. To change all of the attributes of the currently selected text, set SelAttributes to a TTextAttributes object that represents the desired configuration of attributes. If no text is selected, SelAttributes represents the attributes of the cursor position.

When inserting new text, the font characteristics of the new text will match SelAttributes.

Note: SelAttributes is available only at runtime.

See Also

Code Examples