Share via


ContextNodeCollection.IndexOf Method (Guid)

Returns the index of a specified ContextNode belonging a ContextNodeCollection.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    nodeId As Guid _
) As Integer
'Usage
Dim instance As ContextNodeCollection 
Dim nodeId As Guid 
Dim returnValue As Integer 

returnValue = instance.IndexOf(nodeId)
public int IndexOf(
    Guid nodeId
)
public:
int IndexOf(
    Guid nodeId
)
public function IndexOf(
    nodeId : Guid
) : int

Parameters

Return Value

Type: System.Int32
The index of the specific ContextNode object within the ContextNodeCollection.

Remarks

If a Guid is passed in and no ContextNode object exists with that identifier in ContextNodeCollection, then IndexOf returns -1.

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

ContextNodeCollection Class

ContextNodeCollection Members

IndexOf Overload

System.Windows.Ink Namespace