Sets and returns the item that appears in the topmost position in the list.
Syntax
object.TopIndex [= Variant]
The TopIndex property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
Variant | Optional. The number of the list item that is displayed in the topmost position. The default is 0, or the first item in the list. |
Settings
Returns the value –1 if the list is empty or not displayed.