Share this page

# SelectRange Method (IListBase<T>)

Selects all list items between (and including) the two specified items.

This method has multiple overloads.

In this topic:

## SelectRange Method (Int32)

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

C# Syntax

                    void SelectRange(int itemIndexLast)

Parameters

itemIndexLast
  The index of the last item to select.

## SelectRange Method (Int32,Int32)

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 of the range.

## SelectRange Method (String)

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

C# Syntax

                void SelectRange(string itemNameLast)

Parameters

itemNameTo
  The name of the last item to select.

## SelectRange Method (String,String)

Selects all list items between (and including) the two specified item names.

C# Syntax

                void SelectRange(
       string itemNameFrom,
       string itemNameTo
    )

Parameters

itemNameFrom
  The name of the first item in the range.
itemNameTo
  The name of the last item of the range.

## SelectRange Method (T)

Selects all list items between the currently selected item and the specified last item.

C# Syntax

                void SelectRange(T itemLast)

Parameters

itemLast
  The last item to select.

## SelectRange Method (T,T)

Selects all list items between (and including) the two specified items.

C# Syntax

                void SelectRange(
       T itemFrom,
       T itemTo
    )

Parameters

itemFrom
  The first item in the range.
itemTo
  The last item of the range.

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: