Skip to main content

TextEditBase.SelectAllOnMouseUp Property

Gets or sets whether to select the entire text when the editor gets focus by mouse click. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool SelectAllOnMouseUp { get; set; }

Property Value

Type Description
Boolean

true, to select the text on focusing by mouse click; otherwise, false.

Remarks

Set the SelectAllOnMouseUp property to true to enable automatic text selection when an editor gets focus by mouse click. To enable text selection when an editor gets focus via a keyboard, set the TextEditBase.SelectAllOnGotFocus to true.

To select all the text within the editor manually, use the TextEditBase.SelectAll method. To select only the specified amount of text, use the TextEdit.Select method.

Note

The SelectAllOnMouseUp property is intended for standalone editors. In GridControl, you can use the DataViewBase.EditorShowMode property to manage the in-place editors’ activation mode. The GridControl will automatically select all text on activation when you set the EditorShowMode property to MouseUp.

See Also