InkAnalyzer.GetAnalysisHints 方法
返回一个 ContextNodeCollection,其中包含附加到 InkAnalyzer 的所有 AnalysisHintNode 对象。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Function GetAnalysisHints As ContextNodeCollection
用法
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection
returnValue = instance.GetAnalysisHints()
public ContextNodeCollection GetAnalysisHints()
public:
ContextNodeCollection^ GetAnalysisHints()
public ContextNodeCollection GetAnalysisHints()
public function GetAnalysisHints() : ContextNodeCollection
返回值
类型:System.Windows.Ink.ContextNodeCollection
附加到 InkAnalyzer 的所有 AnalysisHintNode 对象。
备注
如果没有附加任何 AnalysisHintNode 对象,则此方法返回空 ContextNodeCollection。
示例
此示例创建一个名为 notes 的 StringBuilder。然后添加当前附加到 InkAnalyzer (theInkAnalyzer) 的每个分析提示的全局唯一标识符 (GUID) 和名称。
' Create a string builder for information about the hints.
Dim notes As New System.Text.StringBuilder()
notes.AppendLine("List of all the current AnalysisHintNodes:")
For Each theHint As AnalysisHintNode In Me.theInkAnalyzer.GetAnalysisHints()
notes.AppendLine(String.Format(" Hint {0}, name '{1}'", _
theHint.Id, theHint.Name))
Next theHint
// Create a string builder for information about the hints.
System.Text.StringBuilder notes = new System.Text.StringBuilder();
notes.AppendLine("List of all the current AnalysisHintNodes:");
foreach (AnalysisHintNode theHint
in this.theInkAnalyzer.GetAnalysisHints())
{
notes.AppendLine(string.Format(" Hint {0}, name '{1}'",
theHint.Id, theHint.Name));
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0