Export (0) Print
Expand All

ListViewItem.Bounds Property

Gets the bounding rectangle of the item, including subitems.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public Rectangle Bounds { get; }
/** @property */
public Rectangle get_Bounds ()

public function get Bounds () : Rectangle

Property Value

A Rectangle that represents the bounding rectangle of the item.

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 GetBounds method. The ListView class provides a GetItemRect method that allows you to get the bounding rectangle of any item located within the control.

When the ListView.View property has a value of 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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft