Freigeben über


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
public final class Factoid
Not applicable.

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. 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">

The Filename factoid or the Web factoid or the word list.

If you are using the InkEdit control, the factoid can be set as a property of the control as in this Microsoft® Visual Basic® .NET example:

InkEdit1.Factoid = Factoid.Hiragana

If you are using the Tablet PC Platform APIs, you can set the Factoid property on a RecognizerContext object, as in this C# example:

theRecognizerContext.Factoid = Factoid.PostalCode;

Alternatively, you can set this property with the actual factoid string constant:

theRecognizerContext.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 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

Factoid Members
Microsoft.Ink Namespace
RecognizerContext.Factoid
InkEdit.Factoid

Other Resources

Improving Tablet PC Recognition Accuracy by Setting Context
Supported Factoids from Version 1