System.Windows.Forms.ListViewItem.GetBounds Method

Retrieves the specified portion of the bounding rectangle for the item.

Syntax

public System.Drawing.Rectangle GetBounds (ItemBoundsPortion portion)

Parameters

portion
One of the System.Windows.Forms.ItemBoundsPortion values that represents a portion of the item for which to retrieve the bounding rectangle.

Returns

A System.Drawing.Rectangle that represents the bounding rectangle for the specified portion of the item.

Remarks

The bounding rectangle returned by the ListViewItem.GetBounds(ItemBoundsPortion) method represents only the section of the item specified in the portion parameter. You can also call the ListView.GetItemRect(int) methods of the System.Windows.Forms.ListView class to obtain the bounding rectangle of any item in a System.Windows.Forms.ListView control.

Requirements

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