Share via


InkRecognizerBaseCollection.GetPriorityInkRecognizer Method (InkRecognizerCapabilities)

Gets the first recognizer in the collection that supports the specified capabilities.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function GetPriorityInkRecognizer ( _
    capabilities As InkRecognizerCapabilities _
) As InkRecognizerBase
'Usage
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 function GetPriorityInkRecognizer(
    capabilities : InkRecognizerCapabilities
) : InkRecognizerBase

Parameters

Return Value

Type: System.Windows.Ink.AnalysisCore.InkRecognizerBase
The first InkRecognizerBase in the collection that supports the specified InkRecognizerCapabilities, or nulla null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if the collection contains no such recognizer.

Examples

The following example gets the first InkRecognizerBase from the InkRecognizerBaseCollection, theInkRecognizers, that supports boxed input.

' 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);

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkRecognizerBaseCollection Class

InkRecognizerBaseCollection Members

GetPriorityInkRecognizer Overload

System.Windows.Ink.AnalysisCore Namespace