Skip to main content
A newer version of this page is available. .

BaseCheckedListBoxControl.GetItemCheckState(Int32) Method

Gets the check state of the item specified by its index.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public virtual CheckState GetItemCheckState(
    int index
)

Parameters

Name Type Description
index Int32

An integer value representing the zero-based index of the item.

Returns

Type Description
CheckState

A CheckState enumeration member representing the item’s check state. CheckState.Unchecked if the item’s index is negative or exceeds the last available index.

Remarks

This method determines the check state of the item specified by its index. When you only need to determine whether the item is checked, use the BaseCheckedListBoxControl.GetItemChecked method instead.

If you need to change the item’s check state, you can use the control’s BaseCheckedListBoxControl.SetItemCheckState method or the item’s CheckedListBoxItem.CheckState property.

See Also