InkAnalyzer.GetAnalysisHints 方法 (String)

返回附加到 InkAnalyzer 的具有指定名称的所有 AnalysisHintNode 对象。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)

语法

声明
Public Function GetAnalysisHints ( _
    hintName As String _
) As ContextNodeCollection
用法
Dim instance As InkAnalyzer
Dim hintName As String
Dim returnValue As ContextNodeCollection

returnValue = instance.GetAnalysisHints(hintName)
public ContextNodeCollection GetAnalysisHints(
    string hintName
)
public:
ContextNodeCollection^ GetAnalysisHints(
    String^ hintName
)
public ContextNodeCollection GetAnalysisHints(
    String hintName
)
public function GetAnalysisHints(
    hintName : String
) : ContextNodeCollection

参数

  • hintName
    类型:System.String
    要返回的分析提示的名称。

返回值

类型:Microsoft.Ink.ContextNodeCollection
一个集合,包含具有指定名称的分析提示;如果没有这样的提示附加到墨迹分析器,则为空集合。

备注

此方法只能返回设置了 Name 属性的分析提示。

示例

此示例创建一个 System.Text.StringBuilder (notes)。然后添加有关所有具有名称 theHintName、当前附加到 InkAnalyzer (theInkAnalyzer) 的分析提示的信息。

' Create a string builder for information about the hints.
Dim notes As New System.Text.StringBuilder()
notes.AppendLine(String.Format( _
    "List of all the current AnalysisHintNodes named '{0}':", theHintName))

Dim theHint As Microsoft.Ink.AnalysisHintNode
For Each theHint In Me.theInkAnalyzer.GetAnalysisHints(theHintName)
    notes.AppendLine(String.Format("  Hint {0}", theHint.Id))
Next theHint
// Create a string builder for information about the hints.
System.Text.StringBuilder notes = new System.Text.StringBuilder();
notes.AppendLine(string.Format(
    "List of all the current AnalysisHintNodes named '{0}':",
    theHintName));

foreach (Microsoft.Ink.AnalysisHintNode theHint
    in this.theInkAnalyzer.GetAnalysisHints(theHintName))
{
    notes.AppendLine(string.Format("  Hint {0}", theHint.Id));
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzer 类

InkAnalyzer 成员

GetAnalysisHints 重载

Microsoft.Ink 命名空间

Microsoft.Ink.AnalysisHintNode