Overview | Methods | Fields | This Package | All Packages
Retrieves the height, in pixels, of an item in the list box.
Syntax
public final int getItemHeight()
public final int getItemHeight( int index )
Parameters
index
The zero-based index of the item to return the height for.
Return Value
Returns the height, in pixels, of an item in the list.
Exceptions
WFCInvalidArgumentException thrown if the specified index is not valid. WFCWin32Exception thrown if the item height cannot be retrieved.
Remarks
For list boxes with items of variable height (list boxes whose drawMode property is set to DrawMode.OWNERDRAWVARIABLE), use the index parameter to indicate the item for which you want a height returned. If you call this method on a list box with items of variable height without supplying the index parameter, this method returns the height of the first item in the list box.
See Also setItemHeight