次の方法で共有


InkAnalyzer.GetAnalysisHints メソッド (String)

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

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.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
    返される分析ヒントの名前。

戻り値

型 : System.Windows.Ink.ContextNodeCollection
指定した名前の分析ヒントが含まれるコレクション。インク アナライザにアタッチされたヒントがない場合は空のコレクション。

解説

このメソッドは、Name プロパティが設定された分析のヒントのみ返すことができます。

この例では、notes という名前の StringBuilder を作成します。これは、現在 (theInkAnalyzer という名前の) InkAnalyzer にアタッチされている (theHintName という名前の) すべての分析ヒントに関する情報を追加します。

' 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))

For Each theHint As AnalysisHintNode 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 (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 オーバーロード

System.Windows.Ink 名前空間

System.Windows.Ink.AnalysisHintNode