ContextNodeCollection.Insert Method
Inserts a ContextNode into the ContextNodeCollection at the specified index.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
nodeToInsert As ContextNode _
)
'Usage
Dim instance As ContextNodeCollection
Dim index As Integer
Dim nodeToInsert As ContextNode
instance.Insert(index, nodeToInsert)
public void Insert(
int index,
ContextNode nodeToInsert
)
public:
void Insert(
int index,
ContextNode^ nodeToInsert
)
public function Insert(
index : int,
nodeToInsert : ContextNode
)
Parameters
index
Type: System.Int32The zero-based index at which to insert the ContextNode object specified in the nodeToInsert parameter.
nodeToInsert
Type: Microsoft.Ink.ContextNodeThe ContextNode object to insert.
Remarks
This method throws an exception if the nodeToInsert parameter is nulla null reference (Nothing in Visual Basic).
Examples
The following example inserts a ContextNode, firstNode, at the beginning of the ContextNodeCollection, nodes.
nodes.Insert(0, firstNode)
nodes.Insert(0, firstNode);
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