Open topic with navigation

# SelectRange Method (IList)

Selects list items between (and including) the two specified items.
This method has multiple overloads.

In this topic:

## SelectRange Method (Int32,Int32)

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

C# Syntax

                    void SelectRange(
       int indexFrom,
       int indexTo
    )

Parameters

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

## SelectRange Method (String,String)

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

C# Syntax

                    void SelectRange(
       int itemNameFirst,
       int itemNameLast
    )

Parameters

itemNameFirst
  The name of the first item to select.
itemNameLast

The name of the last item to select.

## SelectRange Method (IListItem,IListItem)

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

Note: Supported in LeanFT versions 14.51 and later.

C# Syntax

                    void SelectRange(
       IListItem itemFrom,
       IListItem itemTo
    )

Parameters

itemNameFrom
  The first ListItem to select.
itemNameTo
  The last ListItem to select.