RecognizerContext.SetEnabledUnicodeRanges Method
Enables one or more Unicode ranges on the context.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Sub SetEnabledUnicodeRanges ( _
ranges As UnicodeRange() _
)
'Usage
Dim instance As RecognizerContext
Dim ranges As UnicodeRange()
instance.SetEnabledUnicodeRanges(ranges)
public void SetEnabledUnicodeRanges(
UnicodeRange[] ranges
)
public:
void SetEnabledUnicodeRanges(
array<UnicodeRange>^ ranges
)
public function SetEnabledUnicodeRanges(
ranges : UnicodeRange[]
)
Parameters
ranges
Type: array<Microsoft.Ink.UnicodeRange[]Ranges to enable.
Remarks
Not all recognizers support this method. If the recognizer does not support this method, a NotImplementedException will be raised. This method is new to the Microsoft.Ink version 6.0 assembly.
Examples
In this example, a new UnicodeRange consisting of the upper case letters of the English alphabet is created, and then used to pass to the SetEnabledUnicodeRanges method. Since not all recognizers support this method, the method call is enclosed in a try…catch block.
Dim RC As RecognizerContext = New RecognizerContext()
Dim ucRange As UnicodeRange = New UnicodeRange("A", 26)
Try
' not all recognizers support this method
RC.SetEnabledUnicodeRanges(New UnicodeRange() {ucRange})
Catch ex As NotImplementedException
' if SetEnabledUnicodeRanges() is not supported
End Try
RecognizerContext RC = new RecognizerContext();
UnicodeRange ucRange = new UnicodeRange('A', 26);
try
{
// not all recognizers support this method
RC.SetEnabledUnicodeRanges(new UnicodeRange[] { ucRange });
}
catch (NotImplementedException)
{
// if SetEnabledUnicodeRanges() is not supported
}
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