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 function Clone() : Ink

Return Value

Type: Microsoft.Ink.Ink
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.

Examples

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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Ink Class

Ink Members

Microsoft.Ink Namespace

Ink.Dirty