Partager via


InkEdit.Factoid Property

InkEdit.Factoid Property

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

Definition

Visual Basic .NET Public Property Factoid As String
C# public string Factoid { get; set; }
Managed C++ public: __property String* get_Factoid();
public: __property void set_Factoid(String*);

Property Value

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

This property is read/write. This property has no default value.

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 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 Leave Site, 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

[C#]

This C# example sets the Factoid property of an InkEdit control, theInkEdit, to bias recognition results in favor of postal codes.

theInkEdit.Factoid = "(!IS_ADDRESS_POSTALCODE)";

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example sets the Factoid property of an InkEdit control, theInkEdit, to bias recognition results in favor of postal codes.

theInkEdit.Factoid = "(!IS_ADDRESS_POSTALCODE)"

See Also