Share via


InkAnalyzerBase.FindNodesOfType Method (Guid, array<Int32[])

Returns the ContextNodeBase objects of the specified type that contain any of the strokes whose identifiers are in the specified array of stroke identifiers.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function FindNodesOfType ( _
    type As Guid, _
    strokeIds As Integer() _
) As ContextNodeBaseCollection
'Usage
Dim instance As InkAnalyzerBase 
Dim type As Guid 
Dim strokeIds As Integer()
Dim returnValue As ContextNodeBaseCollection 

returnValue = instance.FindNodesOfType(type, _
    strokeIds)
public ContextNodeBaseCollection FindNodesOfType(
    Guid type,
    int[] strokeIds
)
public:
ContextNodeBaseCollection^ FindNodesOfType(
    Guid type, 
    array<int>^ strokeIds
)
public function FindNodesOfType(
    type : Guid, 
    strokeIds : int[]
) : ContextNodeBaseCollection

Parameters

  • type
    Type: System.Guid

    The type of the context node to find.

  • strokeIds
    Type: array<System.Int32[]

    An array containing the stroke identifiers.

Return Value

Type: System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
A ContextNodeBaseCollection containing context nodes of the specified type that contain any of the strokes whose identifiers are in strokeIds.

Remarks

If a node or one of its descendants reference a stroke specified in strokeIds, this method includes that node in the return value.

Examples

The following example finds all the line nodes in an InkAnalyzerBase, theInkAnalyzerBase, that contain the strokes identified in the array, theStrokeIds.

Dim lineNodes As System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection = _
    theInkAnalyzerBase.FindNodesOfType( _
        System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds)
System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection lineNodes =
    theInkAnalyzerBase.FindNodesOfType(
        System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds);

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

InkAnalyzerBase Class

InkAnalyzerBase Members

FindNodesOfType Overload

System.Windows.Ink.AnalysisCore Namespace

InkAnalyzerBase.FindInkLeafNodes

InkAnalyzerBase.FindLeafNodes

InkAnalyzerBase.FindNode

InkAnalyzerBase.FindNodes