System.Windows.Forms.ListView.GetItemRect Method

Retrieves the bounding rectangle for a specific item within the list view control.

Syntax

public System.Drawing.Rectangle GetItemRect (int index)

Parameters

index
The zero-based index of the item within the System.Windows.Forms.ListView.ListViewItemCollection whose bounding rectangle you want to return.

Returns

A System.Drawing.Rectangle that represents the bounding rectangle of the specified System.Windows.Forms.ListViewItem.

Remarks

The bounding rectangle returned by this version of the ListView.GetItemRect(int) method represents the entire item, including the icon, item text, and subitem text. To specify a specific portion of the item's bounding rectangle, use the other version of the ListView.GetItemRect(int) method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0