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