共用方式為


UnicodeRange.Length 屬性

取得或設定起始字元後面的字元數目。

命名空間:  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
起始字元後面的字元數目。

範例

在這個範例中,方法會接受 Recognizer 物件,而且會使用所傳入物件的 GetUnicodeRanges 方法,計算支援的字元總數。

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 命名空間