Microsoft SDK for Java

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.