ListView::CheckedListViewItemCollection::Item Property (String^)

 

Gets an item with the specified key within the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property ListViewItem^ default[
	String^ key
] {
	virtual ListViewItem^ get(String^ key);
}

Parameters

key
Type: System::String^

The key of the item in the collection to retrieve.

Property Value

Type: System.Windows.Forms::ListViewItem^

A ListViewItem representing the item with the specified index within the collection.

Exception Condition
InvalidOperationException

The owner ListView is in virtual mode.

Item returns null if the key parameter is null or empty.

The Name property corresponds to the key for an item in the ListView::CheckedListViewItemCollection.

.NET Framework
Available since 2.0
Return to top
Show: