다음을 통해 공유


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
Public Property Factoid As String
'Usage
Dim instance As InkEdit
Dim value As String

value = instance.Factoid

instance.Factoid = value
public string Factoid { get; set; }
public:
property String^ Factoid {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Factoid ()

/** @property */
public void set_Factoid (String value)
public function get Factoid () : String

public function set Factoid (value : String)
Not applicable.

Property Value

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.

Example

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)";

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

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

InkEdit Class
InkEdit Members
Microsoft.Ink Namespace
RecognizerContext.Factoid

Other Resources

Using Context to Improve Accuracy
InputScope