Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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