A newer version of this page is available. Switch to the current version.

BaseCheckedListBoxControl.GetItemChecked(Int32) Method

Gets a value indicating whether the item is checked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll


public virtual bool GetItemChecked(
    int index


Name Type Description
index Int32

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


Type Description

true if the item is checked; false if unchecked or in the indeterminate state.


This method returns false if the index parameter is negative or exceeds the last available index.

To check an item, use the BaseCheckedListBoxControl.SetItemChecked method.

Use the BaseCheckedListBoxControl.GetItemCheckState and BaseCheckedListBoxControl.SetItemCheckState methods to get and set the item's state.

See Also