Retrieves the specified portion of the bounding rectangle for a specific item within the list view control.
| C# | Visual Basic |
public static Rectangle GetItemRect( ListView listView, int index, ItemBoundsPortion portion )
Public Shared Function GetItemRect ( _ listView As ListView, _ index As Integer, _ portion As ItemBoundsPortion _ ) As Rectangle
- index (Int32)
- The zero-based index of the item within the ListView..::..ListViewItemCollection whose bounding rectangle you want to return.
- portion (ItemBoundsPortion)
- One of the ItemBoundsPortion values that represents a portion of the ListViewItem for which to retrieve the bounding rectangle.
A Rectangle that represents the bounding rectangle for the specified portion of the specified ListViewItem.