Back to Devexpress

TcxCustomTextEdit.SelText Property

vcl-cxtextedit-dot-tcxcustomtextedit-68963224.md

latest1.2 KB
Original Source

TcxCustomTextEdit.SelText Property

Specifies the selected portion of editor text.

Declaration

delphi
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

TcxCustomTextEdit.SelectAll

TcxCustomTextEdit.SelLength

TcxCustomTextEdit.SelStart

TcxCustomTextEdit Class

TcxCustomTextEdit Members

cxTextEdit Unit