ListItem.getBounds

Overview | Methods | This Package | All Packages

ListItem.getBounds

Retrieves the specified portion of the bounding rectangle for a list view item.

Syntax

public final Rectangle getBounds()

public final Rectangle getBounds( int portion )

Parameters

portion

An integer that indicates a portion of the list view item for which to retrieve the bounding rectangle. Possible values are constants defined in the ItemBoundsPortion class.

Return Value

Returns a Rectangle object that represents the bounding rectangle for the specified portion of the designated list view item.

Remarks

The bounding rectangle is measured in client coordinates. If the portion parameter is not supplied, the bounding rectangle for the entire item, including the icon, the item text, and the subitem text, is retrieved.