次の方法で共有


InkAnalyzer.GetAnalysisHints メソッド

InkAnalyzer にアタッチされたすべての AnalysisHintNode オブジェクトを含む ContextNodeCollection を返します。

名前空間 :  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

参照

参照

InkAnalyzer クラス

InkAnalyzer メンバ

GetAnalysisHints オーバーロード

System.Windows.Ink 名前空間

System.Windows.Ink.AnalysisHintNode