次の方法で共有


RecognizerContext.GetEnabledUnicodeRanges メソッド

認識エンジンがサポートする UnicodeRange の配列を返します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public Function GetEnabledUnicodeRanges As UnicodeRange()
'使用
Dim instance As RecognizerContext
Dim returnValue As UnicodeRange()

returnValue = instance.GetEnabledUnicodeRanges()
public UnicodeRange[] GetEnabledUnicodeRanges()
public:
array<UnicodeRange>^ GetEnabledUnicodeRanges()
public UnicodeRange[] GetEnabledUnicodeRanges()
public function GetEnabledUnicodeRanges() : UnicodeRange[]

戻り値

型 : array<Microsoft.Ink.UnicodeRange[]
認識エンジンがサポートする UnicodeRange の配列。

解説

これは、Microsoft.Ink バージョン 6.0 アセンブリの新しいメソッドです。

この例では、メソッドは RecognizerContext オブジェクトを受け入れ、渡されたオブジェクトの GetEnabledUnicodeRanges メソッドを使用して、有効な文字の合計数を計算します。

Private Function SupportedUnicodeCharCount(ByVal pRecognizerContext As RecognizerContext) As Integer
    Dim result As Integer = 0
    Dim UCRA() As UnicodeRange = pRecognizerContext.GetEnabledUnicodeRanges()
    For Each UCR As UnicodeRange In UCRA
        result += UCR.Length
    Next
    Return result
End Function
private int SupportedUnicodeCharCount(RecognizerContext pRecognizerContext)
{
    int result = 0;
    UnicodeRange[] UCRA = pRecognizerContext.GetEnabledUnicodeRanges();
    foreach (UnicodeRange UCR in UCRA)
    {
        result += UCR.Length;
    }
    return result;

}

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

RecognizerContext クラス

RecognizerContext メンバ

Microsoft.Ink 名前空間