Overview | Methods | This Package | All Packages
Retrieves the specified portion of the bounding rectangle for a list view item.
Syntax
public final Rectangle getItemRect( int index )
public final Rectangle getItemRect( int index, int portion )
Parameters
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.
Return Value
Returns a Rectangle object that represents the bounding rectangle for the specified portion of the specified list view item.
Remarks
If the portion parameter is not supplied, the bounding rectangle for the entire item, including the icon, item text, and subitem text, is retrieved.