Retrieves the specified portion of the bounding rectangle for a list view item.
public final Rectangle getBounds()
public final Rectangle getBounds( int portion )
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.
Returns a Rectangle object that represents the bounding rectangle for the specified portion of the designated list view item.
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.