Retrieves the specified portion of the bounding rectangle for a list view item.
public final Rectangle getItemRect( int index )
public final Rectangle getItemRect( int index, int portion )
index
The zero-based index of item whose bounding rectangle you want to return.
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 specified list view item.
If the portion parameter is not supplied, the bounding rectangle for the entire item, including the icon, item text, and subitem text, is retrieved.