InkAnalyzer.GetAnalysisHints Method (String)
Returns a ContextNodeCollection containing all AnalysisHintNode objects of a specified name that are attached to the InkAnalyzer.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public Function GetAnalysisHints ( _
hintName As String _
) As ContextNodeCollection
'Usage
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 function GetAnalysisHints(
hintName : String
) : ContextNodeCollection
Parameters
hintName
Type: System.StringThe name of the analysis hint to return.
Return Value
Type: System.Windows.Ink.ContextNodeCollection
A collection containing either analysis hints with the specified name, or an empty collection, if no such hint is attached to the ink analyzer.
Remarks
This method can return only analysis hints that have had their Name property set.
Examples
This example creates a StringBuilder named notes. It adds information about all analysis hints (named theHintName) that are currently attached to the InkAnalyzer (named 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))
For Each theHint As AnalysisHintNode 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 (AnalysisHintNode theHint
in this.theInkAnalyzer.GetAnalysisHints(theHintName))
{
notes.AppendLine(string.Format(" Hint {0}", theHint.Id));
}
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