Table of Contents

Method SetSelectedIndex

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

SetSelectedIndex(int?, bool, bool)

Changes SelectedIndex property value and optionally clears previous selection.

public virtual void SetSelectedIndex(int? index, bool clearSelection = true, bool setSelected = true)

Parameters

index int?

Item index

clearSelection bool

Whether to clear previous selection.

setSelected bool

Whether to modify item's selected state.