Поделиться через


UnicodeRange.Length - свойство

Обновлен: Ноябрь 2007

Gets or sets the number of characters that follow the starting character.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Property Length As Integer
'Применение
Dim instance As UnicodeRange
Dim value As Integer

value = instance.Length

instance.Length = value
public int Length { get; set; }
public:
property int Length {
    int get ();
    void set (int value);
}
/** @property */
public int get_Length()
/** @property */
public  void set_Length(int value)
public function get Length () : int
public function set Length (value : int)

Значение свойства

Тип: System.Int32
The number of characters that follow the starting character.

Примеры

In this example, a method accepts a Recognizer object, and uses the GetUnicodeRanges method of the passed object to calculate the total number of supported characters.

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

}

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

UnicodeRange Структура

UnicodeRange - члены

Microsoft.Ink - пространство имен