ItemBoundsPortion Enum

Definition

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

public enum ItemBoundsPortion
Inheritance
ItemBoundsPortion

Fields

Name Value Description
Entire 0

The bounding rectangle of the entire item, including the icon, the item text, and the subitem text (if displayed), should be retrieved.

Icon 1

The bounding rectangle of the icon or small icon should be retrieved.

Label 2

The bounding rectangle of the item text should be retrieved.

ItemOnly 3

The 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(Int32) method.

Remarks

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.

Applies to

Produto Versões
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also