Partager via


AnalysisHintNode.Factoid, propriété

Mise à jour : November 2007

Obtient ou définit le nom de chaîne de l'élément que le InkAnalyzer utilise pour analyser l'entrée manuscrite dans cette zone.

Espace de noms :  Microsoft.Ink
Assembly :  Microsoft.Ink.Analysis (dans Microsoft.Ink.Analysis.dll)

Syntaxe

'Déclaration
Public Property Factoid As String
'Utilisation
Dim instance As AnalysisHintNode
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)

Valeur de propriété

Type : System.String
Nom de chaîne de l'élément que le InkAnalyzer utilise pour analyser l'entrée manuscrite dans cette zone. La valeur par défaut est une chaîne vide ("").

Notes

Pour supprimer un élément, affectez la chaîne vide à cette propriété. Pour plus d'informations sur les valeurs d'élément disponibles, consultez Using Context to Improve Accuracy.

Pendant l'analyse, si le module de reconnaissance de l'écriture manuscrite appliqué aux traits ne prend pas en charge l'élément spécifié, l'analyseur d'entrée manuscrite génère un AnalysisWarning pour lequel la valeur Microsoft.Ink.AnalysisWarningCode de la propriété WarningCode est FactoidNotSupported.

Exemples

Cet exemple crée un AnalysisHintNode, theAnalysisHint, pour le InkAnalyzer, theInkAnalyzerWithHint, et définit theAnalysisHint comme une indication globale. Il définit ensuite les propriétés CoerceToFactoid, Factoid et Name sur l'indication.

' Add a new, global analysis hint to theInkAnalyzerWithHint.
Dim theAnalysisHint As Microsoft.Ink.AnalysisHintNode = _
    Me.theInkAnalyzerWithHint.CreateAnalysisHint()
theAnalysisHint.Location.MakeInfinite()

theAnalysisHint.Factoid = "(!IS_DATE_FULLDATE)"
theAnalysisHint.CoerceToFactoid = True
theAnalysisHint.Name = "Coerce to Factoid"
// Add a new, global analysis hint to theInkAnalyzerWithHint.
Microsoft.Ink.AnalysisHintNode theAnalysisHint =
    this.theInkAnalyzerWithHint.CreateAnalysisHint();
theAnalysisHint.Location.MakeInfinite();

theAnalysisHint.Factoid = "(!IS_DATE_FULLDATE)";
theAnalysisHint.CoerceToFactoid = true;
theAnalysisHint.Name = "Coerce to Factoid";

Plateformes

Windows Vista

Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Informations de version

.NET Framework

Pris en charge dans : 3.0

Voir aussi

Référence

AnalysisHintNode, classe

Membres AnalysisHintNode

Microsoft.Ink, espace de noms