System.Windows.Forms.ListViewItem.Bounds Property

Gets the bounding rectangle of the item, including subitems.

Syntax

[System.ComponentModel.Browsable(false)]
public System.Drawing.Rectangle Bounds { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this method to obtain the bounding rectangle of an entire item. If you want to obtain the bounding rectangle for a portion of the entire item, use the ListViewItem.GetBounds(ItemBoundsPortion) method. The System.Windows.Forms.ListView class provides a ListView.GetItemRect(int) method that allows you to get the bounding rectangle of any item located within the control.

The returned bounding rectangle uses client control coordinates that are relative to the top-left corner of the currently visible area of the containing System.Windows.Forms.ListBox. If the System.Windows.Forms.ListBox is scrollable and positioned so that the System.Windows.Forms.ListViewItem is not visible, the coordinates returned may be negative.

When the ListView.View property has a value of View.List, the width of the bounding rectangle is the width of the column containing the item, not the width of the text in the item. If the ListView.Columns collection does not contain any columns, the default column width of 60 pixels is used.

Requirements

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