Table of Contents

Method SetItemChecked

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetItemChecked(int, bool)

Sets the checked state of the item at the specified index.

public virtual bool SetItemChecked(int index, bool value)

Parameters

index int

The zero-based index of the item to update. Must be within the valid range of items.

value bool

true to check the item; false to uncheck it.

Returns

bool

true if the operation was successful; otherwise, false.

Remarks

Use this method to programmatically change the checked state of an item in the control.