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 を作成します。次に、InkAnalyzer、theInkAnalyzer に現在アタッチされている名前 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))
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