ListViewItem::Clone Method ()

 

Creates an identical copy of the item.

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

public:
virtual Object^ Clone()

Return Value

Type: System::Object^

An object that represents an item that has the same text, image, and subitems associated with it as the cloned item.

You can use this method to create a new instance of the ListViewItem class based on an existing item. Even the subitems of the item being cloned are specified for the new version. This feature is useful if you want to reuse a ListViewItem in more than one ListView control.

.NET Framework
Available since 1.1
Return to top
Show: