SelectRange Method (IListBase<T>)

Selects all list items between (and including) the two specified items. This method is applicable only to lists that allow multiple selection.

This method has multiple overloads.

SelectRange (Int32,Int32) Method

Selects all list items between (and including) the two specified items.
C# Syntax
void SelectRange( 
   int indexFrom,
   int indexTo
)

Parameters

indexFrom
The 0-based index of the first item in the range.
indexTo
The 0-based index of the last item in the range.

SelectRange (Int32) Method

Selects all list items between the currently selected item and the item whose index is specified.

C# Syntax
void SelectRange(int indexTo)

Parameters

indexTo
The 0-based index of the last item to select.

SelectRange (String) Method

Selects all list items between the currently selected item and the item whose text is specified.

C# Syntax
void SelectRange(string itemTo)

Parameters

itemTo
the text of the last item to select.