Export (0) Print
Expand All

ListViewItem Properties

The properties of the ListViewItem class are listed here. For a complete list of ListViewItem class members, see the ListViewItem Members topic.

Public Properties

public propertyBackColor Gets or sets the background color of the item's text.
public propertyBounds Gets the bounding rectangle of the item, including subitems.
public propertyChecked

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the item is checked.
public propertyFocused

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the item has focus within the list view control.
public propertyFont Gets or sets the font of the text displayed by the item.
public propertyForeColor Gets or sets the foreground color of the item's text.
public propertyImageIndex

Supported by the .NET Compact Framework.

Gets or sets the index of the image that is displayed for the item.
public propertyImageList Gets the ImageList that contains the image displayed with the item.
public propertyIndex

Supported by the .NET Compact Framework.

Gets the zero-based index of the item within the list view control.
public propertyListView

Supported by the .NET Compact Framework.

Gets the ListView control that contains the item.
public propertySelected

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the item is selected.
public propertyStateImageIndex Gets or sets the index of the state image (an image such as a checked or cleared check box that indicates the state of the item) that is displayed for the item.
public propertySubItems

Supported by the .NET Compact Framework.

Gets a collection containing all subitems of the item.
public propertyTag Gets or sets an object that contains data to associate with the item.
public propertyText

Supported by the .NET Compact Framework.

Gets or sets the text of the item.
public propertyUseItemStyleForSubItems Gets or sets a value indicating whether the Font, ForeColor, and BackColor properties for the item are used for all its subitems.

See Also

ListViewItem Class | System.Windows.Forms Namespace

Show:
© 2015 Microsoft