Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseCheckedListBoxControl.GetItemCheckState(Int32) Method

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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