다음을 통해 공유


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 void Insert (
    int index, 
    ContextNode nodeToInsert
)
public function Insert (
    index : int, 
    nodeToInsert : ContextNode
)
Not applicable.

Parameters

  • index
    The zero-based index at which to insert the ContextNode object specified in the nodeToInsert parameter.
  • nodeToInsert
    The ContextNode object to insert.

Remarks

This method throws an exception if the nodeToInsert parameter is a null reference (Nothing in Visual Basic).

Example

The following example inserts a ContextNode, firstNode, at the beginning of the ContextNodeCollection, nodes.

nodes.Insert(0, firstNode)
nodes.Insert(0, firstNode);

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNodeCollection Class
ContextNodeCollection Members
System.Windows.Ink Namespace