Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ItemBoundsPortion Enumeration

Specifies a portion of the list view item from which to retrieve the bounding rectangle.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public enum ItemBoundsPortion
Member nameDescription
EntireThe bounding rectangle of the entire item, including the icon, the item text, and the subitem text (if displayed), should be retrieved.
IconThe bounding rectangle of the icon or small icon should be retrieved.
LabelThe bounding rectangle of the item text should be retrieved.
ItemOnlyThe bounding rectangle of the icon or small icon and the item text should be retrieved. In all views except the details view of the ListView, this value specifies the same bounding rectangle as the Entire value. In details view, this value specifies the bounding rectangle specified by the Entire value without the subitems. If the CheckBoxes property is set to true, this property does not include the area of the check boxes in its bounding rectangle. To include the entire item, including the check boxes, use the Entire value when calling the GetItemRect method.

Use the members of this enumeration when calling the GetItemRect method of the ListView control. This enumeration is also used when calling the GetBounds method of the ListViewItem class.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.