ContextNodeBaseCollection.Insert-Methode
Fügt ein ContextNodeBase-Objekt am angegebenen Index in die ContextNodeBaseCollection ein.
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 void Insert(
int index,
ContextNodeBase nodeToInsert
)
public function Insert(
index : int,
nodeToInsert : ContextNodeBase
)
Parameter
- index
Typ: System.Int32
Der nullbasierte Index, an dem das im nodeToInsert-Parameter angegebene ContextNodeBase-Objekt einzufügen ist.
- nodeToInsert
Typ: System.Windows.Ink.AnalysisCore.ContextNodeBase
Das einzufügende ContextNodeBase-Objekt.
Hinweise
Diese Methode löst eine Ausnahme aus, wenn der nodeToInsert-Parameter nullNULL-Verweis (Nothing in Visual Basic) ist.
Beispiele
Im folgenden Beispiel wird ein ContextNodeBase mit dem Namen firstNode am Anfang einer ContextNodeBaseCollection mit dem Namen nodes eingefügt.
nodes.Insert(0, firstNode)
nodes.Insert(0, firstNode);
Plattformen
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Versionsinformationen
.NET Framework
Unterstützt in: 3.0
Siehe auch
Referenz
ContextNodeBaseCollection-Klasse