共用方式為


InkRecognizerBaseCollection.GetPriorityInkRecognizer 方法 (InkRecognizerCapabilities)

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

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

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

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

參數

傳回值

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

範例

下列範例會從 InkRecognizerBaseCollection (theInkRecognizers) 取得第一個支援方塊式輸入的 InkRecognizerBase

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

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

InkRecognizerBaseCollection 類別

InkRecognizerBaseCollection 成員

GetPriorityInkRecognizer 多載

System.Windows.Ink.AnalysisCore 命名空間