ListBox.getTopIndex

Overview | Methods | Fields | This Package | All Packages

ListBox.getTopIndex

Retrieves the zero-based index of the first visible item in a list box.

Syntax

public final int getTopIndex()

Return Value

Returns the zero-based index of the first visible item in a list box.

Remarks

Initially, the item with the index zero (0) is at the top of the list box; if the list box contents have been scrolled, a different item can be at the top.