現在の分析ヒントの単語リストを表す文字列配列を返します。
名前空間 : System.Windows.Ink
アセンブリ : IAWinFX (IAWinFX.dll 内)
構文
'宣言
Public Function GetWordlist As String()
'使用
Dim instance As AnalysisHintNode
Dim returnValue As String()
returnValue = instance.GetWordlist()
public string[] GetWordlist()
public:
array<String^>^ GetWordlist()
public String[] GetWordlist()
public function GetWordlist() : String[]
戻り値
型 : array<System.String[]
現在の分析ヒントの単語リストを表す文字列配列。または、単語リストが設定されていない場合は nullnull 参照 (Visual Basic では Nothing)。
解説
ヒントの単語リストを変更するには、SetWordlist を使用します。
例
この例では、StringBuilder、notes を作成し、現在 InkAnalyzer、theInkAnalyzerWithHint にアタッチされているすべてのヒントに関する情報を追加します。ヒントごとに、ヒントの名前、単語リスト、認識された文字列が notes に追加されます。
Dim notes As New System.Text.StringBuilder()
notes.AppendLine("List of all the current AnalysisHintNodes:")
Dim theHint As AnalysisHintNode
For Each theHint In Me.theInkAnalyzerWithHint.GetAnalysisHints()
notes.AppendLine(" Hint Name: " + theHint.Name)
If 0 < theHint.GetWordlist().Length Then
notes.Append(" - WordList: ")
Dim first As Boolean = True
Dim theWord As String
For Each theWord In theHint.GetWordlist()
If Not first Then
notes.Append(", ")
Else
first = False
End If
notes.AppendFormat("'{0}'", theWord)
Next theWord
notes.AppendLine()
Else
notes.AppendLine(" - No WordList specified")
End If
If String.Empty <> theHint.GetRecognizedString() Then
notes.AppendLine(" - Recognized string: " + theHint.GetRecognizedString())
Else
notes.AppendLine(" - No recognized string.")
End If
notes.AppendLine()
Next theHint
System.Text.StringBuilder notes = new System.Text.StringBuilder();
notes.AppendLine("List of all the current AnalysisHintNodes:");
foreach (AnalysisHintNode theHint
in this.theInkAnalyzerWithHint.GetAnalysisHints())
{
notes.AppendLine(" Hint Name: " + theHint.Name);
if (0 < theHint.GetWordlist().Length)
{
notes.Append(" - WordList: ");
bool first = true;
foreach (String theWord in theHint.GetWordlist())
{
if (!first)
{
notes.Append(", ");
}
else
{
first = false;
}
notes.AppendFormat("'{0}'", theWord);
}
notes.AppendLine();
}
else
{
notes.AppendLine(" - No WordList specified");
}
if (string.Empty != theHint.GetRecognizedString())
{
notes.AppendLine(" - Recognized string: "
+ theHint.GetRecognizedString());
}
else
{
notes.AppendLine(" - No recognized string.");
}
notes.AppendLine();
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0