DiagramItemCollection.Insert Method
Inserts the DiagramItem into the collection at the specified index.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Overridable Sub Insert ( _
index As Integer, _
diagramItem As DiagramItem _
)
public virtual void Insert(
int index,
DiagramItem diagramItem
)
public:
virtual void Insert(
int index,
DiagramItem^ diagramItem
)
abstract Insert :
index:int *
diagramItem:DiagramItem -> unit
override Insert :
index:int *
diagramItem:DiagramItem -> unit
public function Insert(
index : int,
diagramItem : DiagramItem
)
Parameters
index
Type: System.Int32A zero-based index.
diagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe DiagramItem to insert.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.