Share via


ContextNodeBaseCollection.IndexOf Method (ContextNodeBase)

Returns the index of a specific ContextNodeBase object within a ContextNodeBaseCollection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    node As ContextNodeBase _
) As Integer
'Usage
Dim instance As ContextNodeBaseCollection 
Dim node As ContextNodeBase 
Dim returnValue As Integer 

returnValue = instance.IndexOf(node)
public int IndexOf(
    ContextNodeBase node
)
public:
int IndexOf(
    ContextNodeBase^ node
)
public function IndexOf(
    node : ContextNodeBase
) : int

Parameters

Return Value

Type: System.Int32
The index of the specific ContextNodeBase object within the ContextNodeBaseCollection.

Remarks

If a ContextNodeBase object is passed in that does not exist in ContextNodeBaseCollection, then this method returns -1.

Examples

The following example shows how to find the index of a specific ContextNodeBase, myNode, which might be contained in a ContextNodeBaseCollection named nodes.

Dim index As Integer = nodes.IndexOf(myNode)
          int index = nodes.IndexOf(myNode);

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

ContextNodeBaseCollection Class

ContextNodeBaseCollection Members

IndexOf Overload

System.Windows.Ink.AnalysisCore Namespace