InkAnalyzer.GetAnalysisHints Method ()
Returns all of the AnalysisHintNode objects that are attached to the InkAnalyzer.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public Function GetAnalysisHints As ContextNodeCollection
'Usage
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection
returnValue = instance.GetAnalysisHints
public ContextNodeCollection GetAnalysisHints ()
public:
ContextNodeCollection^ GetAnalysisHints ()
public ContextNodeCollection GetAnalysisHints ()
public function GetAnalysisHints () : ContextNodeCollection
Not applicable.
Return Value
All of the AnalysisHintNode objects that are attached to the InkAnalyzer.
Remarks
This method returns an empty ContextNodeCollection if no AnalysisHintNode objects are attached.
Example
This example creates a System.Text.StringBuilder, notes
. It then adds the globally unique identifier (GUID) and name of each analysis hint currently attached to the InkAnalyzer, theInkAnalyzer
.
' Create a string builder for information about the hints.
Dim notes As New System.Text.StringBuilder()
notes.AppendLine("List of all the current AnalysisHintNodes:")
Dim theHint As Microsoft.Ink.AnalysisHintNode
For Each theHint 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 (Microsoft.Ink.AnalysisHintNode theHint
in this.theInkAnalyzer.GetAnalysisHints())
{
notes.AppendLine(string.Format(" Hint {0}, name '{1}'",
theHint.Id, theHint.Name));
}
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
InkAnalyzer Class
InkAnalyzer Members
Microsoft.Ink Namespace
Microsoft.Ink.AnalysisHintNode