ListBox.getItemCount

Overview | Methods | Fields | This Package | All Packages

ListBox.getItemCount

Retrieves the number of items in the list box.

Syntax

public final int getItemCount()

Return Value

Returns the number of items in the list box.

Remarks

Because the index for a list box is zero-based, the returned count is one greater than the index value of the last item in the list.