System.Windows.Forms.ListViewItem Members

The members of System.Windows.Forms.ListViewItem are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Windows.Forms.ListViewItem class with default values.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified item text.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with an array of strings representing subitems.

Initializes a new instance of the System.Windows.Forms.ListViewItem class and assigns it to the specified group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified item text and the image index position of the item's icon.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified text and image.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified item text and assigns it to the specified group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the image index position of the item's icon and an array of strings representing subitems.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified item and subitem text and image.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with an array of strings representing subitems, and assigns the item to the specified group.

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified item text and the image index position of the item's icon, and assigns the item to the specified group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified text, image, and group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the image index position of the item's icon and an array of strings representing subitems, and assigns the item to the specified group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with subitems containing the specified text, image, and group.

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the image index position of the item's icon; the foreground color, background color, and font of the item; and an array of strings representing subitems.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the subitems containing the specified text, image, colors, and font.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the image index position of the item's icon; the foreground color, background color, and font of the item; and an array of strings representing subitems. Assigns the item to the specified group.

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the subitems containing the specified text, image, colors, font, and group.

Protected Constructors

Initializes a new instance of the System.Windows.Forms.ListViewItem class with the specified serialization information and streaming context.

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.

Public Methods

BeginEdit()

Places the item text into edit mode.

Clone() : object

Creates an identical copy of the item.

EnsureVisible()

Ensures that the item is visible within the control, scrolling the contents of the control, if necessary.

FindNearestItem(SearchDirectionHint) : ListViewItem

Finds the next item from the System.Windows.Forms.ListViewItem, searching in the specified direction.

GetBounds(ItemBoundsPortion) : System.Drawing.Rectangle

Retrieves the specified portion of the bounding rectangle for the item.

GetSubItemAt(int, int) : ListViewItem.ListViewSubItem

Returns the subitem of the System.Windows.Forms.ListViewItem at the specified coordinates.

Remove()

Removes the item from its associated System.Windows.Forms.ListView control.

override
ToString() : string
Documentation for this section has not yet been entered.

Protected Methods

Explicitly Implemented Interface Members