Redigera

Dela via


ListViewItem.Clone Method

Definition

Creates an identical copy of the item.

public:
 virtual System::Object ^ Clone();
public virtual object Clone ();
abstract member Clone : unit -> obj
override this.Clone : unit -> obj
Public Overridable Function Clone () As Object

Returns

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

Implements

Remarks

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.

Applies to