System.Windows.Forms.ListViewItem: Property Members

The properties of System.Windows.Forms.ListViewItem are listed below. For a list of all members, see the ListViewItem Members list.

See Also: Inherited members from System.Object

Public Properties

BackColorSystem.Drawing.Color.

Gets or sets the background color of the item's text.

[read-only]
BoundsSystem.Drawing.Rectangle.

Gets the bounding rectangle of the item, including subitems.

Checkedbool.

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

Focusedbool.

Gets or sets a value indicating whether the item has focus within the System.Windows.Forms.ListView control.

FontSystem.Drawing.Font.

Gets or sets the font of the text displayed by the item.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the item's text.

GroupListViewGroup.

Gets or sets the group to which the item is assigned.

ImageIndexint.

Gets or sets the index of the image that is displayed for the item.

ImageKeystring.

Gets or sets the key for the image that is displayed for the item.

[read-only]
ImageListImageList.

Gets the System.Windows.Forms.ImageList that contains the image displayed with the item.

IndentCountint.

Gets or sets the number of small image widths by which to indent the System.Windows.Forms.ListViewItem.

[read-only]
Indexint.

Gets the zero-based index of the item within the System.Windows.Forms.ListView control.

[read-only]
ListViewListView.

Gets the System.Windows.Forms.ListView control that contains the item.

Namestring.

Gets or sets the name associated with this System.Windows.Forms.ListViewItem.

PositionSystem.Drawing.Point.

Gets or sets the position of the upper-left corner of the System.Windows.Forms.ListViewItem.

Selectedbool.

Gets or sets a value indicating whether the item is selected.

StateImageIndexint.

Gets or sets the index of the state image (an image such as a selected or cleared check box that indicates the state of the item) that is displayed for the item.

[read-only]
SubItemsListViewItem.ListViewSubItemCollection.

Gets a collection containing all subitems of the item.

Tagobject.

Gets or sets an object that contains data to associate with the item.

Textstring.

Gets or sets the text of the item.

ToolTipTextstring.

Gets or sets the text shown when the mouse pointer rests on the System.Windows.Forms.ListViewItem.

UseItemStyleForSubItemsbool.

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