BaseEdit.Reset() Method

Resets the editor’s selection and cursor position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public virtual void Reset()


As implemented in the BaseEdit class, the Reset method sets the BaseEdit.IsModified property to false. The BaseEdit.IsModified property indicates whether the value of an editor (specified by the BaseEdit.EditValue property) has been modified. The Reset method can be overridden in derived classes to implement actions when the selection and cursor position need to be set to their initial state. For example, this method is overridden in the TextEdit class in order to clear selection, if any, and to move the caret position.

See Also