Share via


RecognizerContext.Clone Method

Creates a copy of this RecognizerContext object.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function Clone As RecognizerContext
'Usage
Dim instance As RecognizerContext
Dim returnValue As RecognizerContext

returnValue = instance.Clone
public RecognizerContext Clone ()
public:
RecognizerContext^ Clone ()
public RecognizerContext Clone ()
public function Clone () : RecognizerContext
Not applicable.

Return Value

The new copy of the original RecognizerContext object.

Remarks

The duplicate RecognizerContext object is an exact copy of the original RecognizerContext object, but no relation between the two RecognizerContext objects exists.

This method returns a copy of the original RecognizerContext that contains the same settings as the original, but does not include the recognition results, if any. The settings that are copied include the recognition guide, character Autocomplete mode, a reference to the original ink, and all properties that improve the recognition results, such as the Factoid and RecognitionFlags properties.

Example

This C# example creates a copy of a RecognizerContext, theRecognizerContext, and names the copy theCloneRecognizerContext.

RecognizerContext theCloneRecognizerContext = theRecognizerContext.Clone();

This Microsoft® Visual Basic® .NET example creates a copy of a RecognizerContext, theRecognizerContext, and names the copy theCloneRecognizerContext.

Dim theCloneRecognizerContext As RecognizerContext = theRecognizerContext.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

See Also

Reference

RecognizerContext Class
RecognizerContext Members
Microsoft.Ink Namespace
RecognizerContext.CharacterAutoCompletion
RecognizerContext.Factoid
RecognizerContext.Guide
RecognizerContext.RecognitionFlags
RecognizerContext.WordList