Export (0) Print
Expand All

ListViewItem.Clone Method

Creates an identical copy of the item.

[Visual Basic]
Public Overridable Function Clone() As Object Implements _
   ICloneable.Clone
[C#]
public virtual object Clone();
[C++]
public: virtual Object* Clone();
[JScript]
public function Clone() : Object;

Return Value

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

Implements

ICloneable.Clone

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListViewItem Class | ListViewItem Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft