共用方式為


InkRecognizerCollection.GetPriorityInkRecognizer 方法 (InkRecognizerCapabilities)

取得集合中可支援指定之功能的第一個辨識器。

命名空間:  Microsoft.Ink
組件:  Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)

語法

'宣告
Public Function GetPriorityInkRecognizer ( _
    capabilities As InkRecognizerCapabilities _
) As InkRecognizer
'用途
Dim instance As InkRecognizerCollection
Dim capabilities As InkRecognizerCapabilities
Dim returnValue As InkRecognizer

returnValue = instance.GetPriorityInkRecognizer(capabilities)
public InkRecognizer GetPriorityInkRecognizer(
    InkRecognizerCapabilities capabilities
)
public:
InkRecognizer^ GetPriorityInkRecognizer(
    InkRecognizerCapabilities capabilities
)
public InkRecognizer GetPriorityInkRecognizer(
    InkRecognizerCapabilities capabilities
)
public function GetPriorityInkRecognizer(
    capabilities : InkRecognizerCapabilities
) : InkRecognizer

參數

傳回值

型別:Microsoft.Ink.InkRecognizer
集合內第一個支援指定之 InkRecognizerCapabilitiesInkRecognizer,或如果集合不包含這類辨識器,則為 nullNull 參照 (即 Visual Basic 中的 Nothing) 參考 (在 Visual Basic 中為 Nothing)。

範例

下列範例會從 InkRecognizerCollection (變數名稱為 theInkRecognizers) 取得第一個支援方塊式輸入的 InkRecognizer

' Get the first recognizer from the InkRecognizerCollection that supports
' boxed input.
Dim theFirstBoxedInputInkRecognizer As Microsoft.Ink.InkRecognizer = _
    theInkRecognizers.GetPriorityInkRecognizer( _
        Microsoft.Ink.InkRecognizerCapabilities.BoxedInput)
            // Get the first recognizer from the InkRecognizerCollection that supports
            // boxed input.
            Microsoft.Ink.InkRecognizer theFirstBoxedInputInkRecognizer =
                theInkRecognizers.GetPriorityInkRecognizer(
                    Microsoft.Ink.InkRecognizerCapabilities.BoxedInput);

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkRecognizerCollection 類別

InkRecognizerCollection 成員

GetPriorityInkRecognizer 多載

Microsoft.Ink 命名空間