Back to Devexpress

ItemCheckEventArgs.State Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-itemcheckeventargs-d99259e2.md

latest2.7 KB
Original Source

ItemCheckEventArgs.State Property

Gets the state of the item.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public CheckState State { get; protected set; }
vb
Public Property State As CheckState

Property Value

TypeDescription
CheckState

A CheckState value representing the checked state of the item.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the State property.

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.

xaf-how-to-display-a-collection-property-as-a-checked-list-box/CS/DXExample.Module.Win/WinCheckedListBoxPropertyEditor.cs#L42

csharp
object obj = Control.GetItemValue(e.Index);
switch (e.State) {
    case CheckState.Checked:

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Win/WinCheckedListBoxPropertyEditor.vb#L46

vb
Dim obj As Object = Control.GetItemValue(e.Index)
Select Case e.State
    Case CheckState.Checked

See Also

Index

ItemCheckEventArgs Class

ItemCheckEventArgs Members

DevExpress.XtraEditors.Controls Namespace