Поделиться через


InkAnalyzer.GetAnalysisHints - метод (String)

Обновлен: Ноябрь 2007

Returns all of the AnalysisHintNode objects with the specified name that are attached to the InkAnalyzer.

Пространство имен:  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
    The name of the analysis hint to return.

Возвращаемое значение

Тип: Microsoft.Ink.ContextNodeCollection
A collection containing the analysis hints with the specified name, or an empty collection, if no such hint is attached to the ink analyzer.

Заметки

This method can return only analysis hints that have had their Name property set.

Примеры

This example creates a System.Text.StringBuilder, notes. It then adds information about all analysis hints with the name, theHintName, currently attached to the InkAnalyzer, theInkAnalyzer.

' 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

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

GetAnalysisHints - перегрузка

Microsoft.Ink - пространство имен

Microsoft.Ink.AnalysisHintNode