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 function Clone() : RecognizerContext
Return Value
Type: Microsoft.Ink.RecognizerContext
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.
Examples
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 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
RecognizerContext.CharacterAutoCompletion