Share via


InkAnalyzer.GetAnalysisHints Method

Returns a ContextNodeCollection that contains all of the AnalysisHintNode objects that are attached to the InkAnalyzer.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.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 function GetAnalysisHints() : ContextNodeCollection

Return Value

Type: System.Windows.Ink.ContextNodeCollection
All of the AnalysisHintNode objects that are attached to the InkAnalyzer.

Remarks

This method returns an empty ContextNodeCollection if no AnalysisHintNode objects are attached.

Examples

This example creates a StringBuilder named 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:")

For Each theHint As AnalysisHintNode 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 (AnalysisHintNode theHint
    in this.theInkAnalyzer.GetAnalysisHints())
{
    notes.AppendLine(string.Format("  Hint {0}, name '{1}'",
        theHint.Id, theHint.Name));
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkAnalyzer Class

InkAnalyzer Members

GetAnalysisHints Overload

System.Windows.Ink Namespace

System.Windows.Ink.AnalysisHintNode