Method SetSelection
SetSelection(int, bool)
Updates the selection state of an item at the specified index.
void SetSelection(int index, bool select)
Parameters
indexintThe zero-based index of the item to update. Must be within the valid range of items.
selectboolA value indicating whether to select or deselect the item. true to select the item; false to deselect it.
SetSelection(int)
Sets the selection to the item at the specified index.
void SetSelection(int n)
Parameters
nintZero-based index of the item to select.