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

BaseCheckedListBoxControl.GetItemChecked(Int32) Method

Gets a value indicating whether the item is checked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public virtual bool GetItemChecked(
    int index
)

Parameters

Name Type Description
index Int32

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

Returns

Type Description
Boolean

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

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetItemChecked(Int32) 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.

See Also