ContextNodeCollection.Insert Method
Inserts a ContextNode into the ContextNodeCollection at the specified index.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.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: System.Windows.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 named firstNode, at the beginning of the ContextNodeCollection (nodes).
nodes.Insert(0, firstNode)
nodes.Insert(0, firstNode);
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