Factoid Class
This class contains the pre-defined factoid identifiers. This class cannot be inherited.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public NotInheritable Class Factoid
'Usage
Dim instance As Factoid
public sealed class Factoid
public ref class Factoid sealed
public final class Factoid
Remarks
Note
For recognizers of Latin script, the factoids defined in this class are provided for backward compatibility only. For new development, you are encouraged to use the values defined in the InputScope Enumeration. For details, see Improving Tablet PC Recognition Accuracy by Setting Context.
Use these identifiers to specify which factoid should be used during recognition.
The following combinations of factoids are supported for western languages only. These do not have separate definitions, but are acceptable string literal inputs to the Factoid property of objects that use factoids. These factoid string constants allow the input to match any of the factoids in the expression.
Combination |
Definition |
---|---|
"WEB|WORDLIST" |
The Web factoid or the word list. |
"EMAIL|WORDLIST" |
The Email factoid or the word list. |
"FILENAME|WEB|WORDLIST"> |
If you are using the InkEdit control, the factoid can be set as a property of the control.
mInkEdit.Factoid = Factoid.Hiragana
mInkEdit.Factoid = Factoid.Hiragana;
If you are using the Tablet PC Platform APIs, you can set the Factoid property on a RecognizerContext object.
mRecognizerContext.Factoid = Factoid.PostalCode
mRecognizerContext.Factoid = Factoid.PostalCode;
Alternatively, you can set this property with the actual factoid string constant.
mRecognizerContext.Factoid = "POSTALCODE"
mRecognizerContext.Factoid = "POSTALCODE";
Note
Factoid string constants are case sensitive. For more information about factoids and how to use them, see Improving Tablet PC Recognition Accuracy by Setting Context. To determine whether a factoid is available in a specific language, see Supported Factoids from Version 1.
Inheritance Hierarchy
System.Object
Microsoft.Ink.Factoid
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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