ContextNodeBaseCollection.Insert Method
Inserts a ContextNodeBase into the ContextNodeBaseCollection at the specified index.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
nodeToInsert As ContextNodeBase _
)
'Usage
Dim instance As ContextNodeBaseCollection
Dim index As Integer
Dim nodeToInsert As ContextNodeBase
instance.Insert(index, nodeToInsert)
public void Insert(
int index,
ContextNodeBase nodeToInsert
)
public:
void Insert(
int index,
ContextNodeBase^ nodeToInsert
)
public function Insert(
index : int,
nodeToInsert : ContextNodeBase
)
Parameters
index
Type: System.Int32The zero-based index at which to insert the ContextNodeBase object specified in the nodeToInsert parameter.
nodeToInsert
Type: System.Windows.Ink.AnalysisCore.ContextNodeBaseThe ContextNodeBase object to be inserted.
Remarks
This method throws an exception if the nodeToInsert parameter is nulla null reference (Nothing in Visual Basic).
Examples
The following example inserts a ContextNodeBase, firstNode, at the beginning of a ContextNodeBaseCollection named 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
See Also
Reference
ContextNodeBaseCollection Class