Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the index of a specific ContextNode object within a ContextNodeCollection by using the node's identifier.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.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
nodeId
Type: System.GuidThe identifier of the ContextNode object to check for.
Return Value
Type: System.Int32
The index of the specific ContextNode object within a ContextNodeCollection.
Examples
The following example shows how to find the index of a specific ContextNode using its GUID.
Dim indexByGuid As Integer = nodes.IndexOf(myGuid)
int indexByGuid = nodes.IndexOf(myGuid);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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