Home > Language Reference > Classes > List

TopItem Property

Index of the first visible element in a list.

Syntax

Public Property Get TopItem() As Integer
Public Property Let TopItem(ByVal
iItem As Integer)

ParameterDescription
iItemIndex of the first visible element.

Remarks

The TopItem property returns or modifies the index of the first visible item in a list. The iIndex argument must be between 0 and ListCount -1. If the list does not contain enough elements for the scroll arrows to appear, this property returns zero and any modification of its value has no effect.

When you modify the value of this property and the Redraw property is set to True, the list is redrawn immediately in order to reflect the new state of the control.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A