Ink.Clone Method
Creates a copy of this Ink object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Function Clone As Ink
'Usage
Dim instance As Ink
Dim returnValue As Ink
returnValue = instance.Clone
public Ink Clone ()
public:
Ink^ Clone ()
public Ink Clone ()
public function Clone () : Ink
Not applicable.
Return Value
The new copy of the original Ink object.
Remarks
In most scenarios, the new Ink object is an exact copy of the original Ink object, but no relation between the two objects exists. The only scenario in which the duplicate Ink object is not an exact copy of the original object is when you clone an Ink object that has been modified but not yet saved. In this case, although the Dirty property of the original Ink object is true, the duplicate Ink object's Dirty property is false. All other properties are exact copies.
Example
This C# example creates a copy of an Ink object, theInk
.
Ink theInkClone = theInk.Clone();
This Microsoft Visual Basic.NET example creates a copy of an Ink object, theInk
.
Dim theInkClone As Ink = theInk.Clone()
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0