Skip to main content
A newer version of this page is available. .

TextEdit.SelectAll() Method

Selects all text within the text box.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public override void SelectAll()

Remarks

This method enables you to select all text within the control. Note that end-users can select the entire text box’s content using the built-in context menu or the F2 key. You can use the SelectAll method if you need to provide additional methods for selecting the editor’s content. You may also need to facilitate end-user input using this method. For instance, you can select the entire editor’s content when an editor receives focus.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectAll() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also