Skip to main content

TcxCustomTextEdit.SelText Property

Specifies the selected portion of editor text.

Declaration

property SelText: TCaption read; write;

Property Value

Type
TCaption

Remarks

Read SelText to determine the value of the selected text. Set SelText to replace the selected text with a new string. If there is no selection, but the edit control has focus, set SelText to insert a new string into the text at the cursor position.

Note

Use the SelText method to programmatically modify the value displayed by the editor’s input field, regardless of the editor’s Properties.ReadOnly property setting.

See Also