Export (0) Print
Expand All

ListViewItem Members

ListViewItem overview

Public Constructors

public constructorListViewItem Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the ListViewItem class.

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.

Public Methods

public methodBeginEdit Places the item text into edit mode.
public methodClone Creates an identical copy of the item.
public methodEnsureVisible Ensures that the item is visible within the control, scrolling the contents of the control if necessary.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetBounds Retrieves the specified portion of the bounding rectangle for the item.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodRemove Removes the item from its associated list view control.
public methodToString

Supported by the .NET Compact Framework.

Overridden. See Object.ToString.

Protected Methods

protected methodDeserialize Deserializes the item.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodSerialize Serializes the item.

See Also

ListViewItem Class | System.Windows.Forms Namespace

Show:
© 2015 Microsoft