A newer version of this page is available. Switch to the current version.

TextEdit.DeselectAll() Method

Clears text box selection.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll


public override void DeselectAll()


Use the DeselectAll method to deselect the selected text in the editor. The caret is positioned at the start of the selection. After the method is called, the TextEdit.SelectionLength property returns 0 indicating that no text is selected.

See Also