Table of Contents

Method SelectItemAndScroll

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

SelectItemAndScroll(ListControlItem?)

Selects the specified item in the list and scrolls it into view if necessary.

public virtual void SelectItemAndScroll(ListControlItem? item)

Parameters

item ListControlItem

The item to select and bring into view. If null, no action is performed.

Remarks

This method delegates index resolution to FindItemIndex(ListControlItem?) and scrolls using an index-based overload. Intended for user interaction scenarios where focus or visibility of a selected item is required.

SelectItemAndScroll(int?)

Selects an item at the specified index and scrolls to make it visible.

public virtual void SelectItemAndScroll(int? index)

Parameters

index int?

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

Remarks

This method updates the selected item and ensures it is visible by scrolling to its position.