Recognizer.Capabilities Property
Gets the capabilities of the Recognizer object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public ReadOnly Property Capabilities As RecognizerCapabilities
'Usage
Dim instance As Recognizer
Dim value As RecognizerCapabilities
value = instance.Capabilities
public RecognizerCapabilities Capabilities { get; }
public:
property RecognizerCapabilities Capabilities {
RecognizerCapabilities get ();
}
/** @property */
public RecognizerCapabilities get_Capabilities ()
public function get Capabilities () : RecognizerCapabilities
Not applicable.
Property Value
Values that define the capabilities of the recognizer.
Remarks
A recognizer's capabilities are defined in the RecognizerCapabilities enumeration, and they include whether the recognizer supports character Autocomplete; whether it supports free, lined, or boxed input; and so on. For a complete list of recognizer capabilities, see the RecognizerCapabilities enumeration.
To determine if a recognizer has a particular capability, use a bitwise comparison operator to check for that capability. For more information about how a bitwise comparison works, see the And Operator.
Example
This C# example determines if the Recognizer object, theRecognizer
, supports the RecognizerCapabilities capability.
[C#]
using Microsoft.Ink;
// . . .
bool isArbitraryAngleSupported = false;
RecognizerCapabilities theCapabilities = theRecognizer.Capabilities;
if ((RecognizerCapabilities.ArbitraryAngle & theCapabilities) != 0)
isArbitraryAngleSupported = true;
This Microsoft® Visual Basic® .NET example determines if the Recognizer, theRecognizer
, supports the RecognizerCapabilities capability.
[Visual Basic]
Imports Microsoft.Ink
' . . .
Dim isArbitraryAngleSupported As Boolean = False
Dim theCapabilities As RecognizerCapabilities
theCapabilities = theRecognizer.Capabilities
If (RecognizerCapabilities.ArbitraryAngle And theCapabilities) <> 0 Then
isArbitraryAngleSupported = True
End If
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Recognizer Class
Recognizer Members
Microsoft.Ink Namespace
RecognizerCapabilities
RecognizerContext.Guide