Share via


InkEdit.Factoid Property

Gets or sets the string name of the factoid used by the InkEdit control.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property Factoid As String
'Usage
Dim instance As InkEdit 
Dim value As String 

value = instance.Factoid

instance.Factoid = value
[BrowsableAttribute(true)]
public string Factoid { get; set; }
[BrowsableAttribute(true)]
public:
property String^ Factoid {
    String^ get ();
    void set (String^ value);
}
public function get Factoid () : String 
public function set Factoid (value : String)

Property Value

Type: System.String
The name of the factoid used by the InkEdit control.

Remarks

A factoid provides context for ink within a particular field. You specify a factoid if an input field is of a known type. For example, if the input field contains a date, specify the IS_DATE_FULLDATE enumerated value.

For the InkEdit control, the Factoid property should only be changed if the Status property returns the InkEditStatus enumeration value, Idle.

To ensure the correct context association, set this property before the ink is processed for the first time.

The Factoid property takes or returns a String, not a Factoid object. For a list of possible values for the Factoid property, see InputScope.

For a list of supported factoids, see the Factoid object and Supported Factoids from Version 1.

No errors are thrown when the factoid is set to an invalid string value.

Note

String representations of factoids are case-sensitive.

Examples

In this example,the Factoid property of an InkEdit control is set to bias recognition results in favor of postal codes.

mInkEdit.Factoid = "(!IS_ADDRESS_POSTALCODE)"
mInkEdit.Factoid = "(!IS_ADDRESS_POSTALCODE)";

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

See Also

Reference

InkEdit Class

InkEdit Members

Microsoft.Ink Namespace

RecognizerContext.Factoid

Other Resources

Using Context to Improve Accuracy