CheckEdit.Toggle() Method
Toggles the editor’s check state.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v26.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Remarks
Use the Toggle method to programmatically cycle the editor through its states.
CheckEdit supports two modes:
- Two-state mode
- The editor can be in the
CheckedorUncheckedstate. - Three-state mode
- The editor can be in the following states:
Checked,Unchecked, orIndeterminate(grayed). Set the AllowGrayed property totrueto enable three-state mode.
CheckEdit changes its states in the following order: Indeterminate → Unchecked → Checked.
Set the DefaultStateAfterIndeterminate property to Checked to change the order to Indeterminate → Checked → Unchecked.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Toggle() 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.