Table of Contents

Method SetSelection

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

SetSelection(int, bool)

Updates the selection state of an item at the specified index.

void SetSelection(int index, bool select)

Parameters

index int

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

select bool

A 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

n int

Zero-based index of the item to select.