SelectRange Method (JList)

Class

JList.

Action

Selects a specified range of list elements.

Syntax

C#
list.SelectRange(fromElement, toElement)
VB
list.SelectRange(fromElement, toElement)
Variable Description
fromElement The name or index of the start element. ItemIdentifier.
toElement The name or index of the end element. ItemIdentifier.

Examples

VB

colorsList.SelectRange("red", "green")
colorsList.SelectRange(1, 2)