Table of Contents

Constructor ListViewItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ListViewItem()

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

public ListViewItem()

ListViewItem(string, int?)

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

public ListViewItem(string text, int? imageIndex = null)

Parameters

text string

The text to display for the item.

imageIndex int?

The zero-based index of the image within the ImageList associated with the ListView that contains the item. Optional.

ListViewItem(string[], int?)

Initializes a new instance of the ListViewItem class with an array of strings representing column cells and the image index position of the item's icon.

public ListViewItem(string[] cellText, int? imageIndex = null)

Parameters

cellText string[]

An array of strings that represent the column cells of the new item.

imageIndex int?

The zero-based index of the image within the ImageList associated with the ListView that contains the item.