InsertEntitiesAt Method (IGroup)

InsertEntitiesAt Method (IGroup) | Send Feedback
See Also Example

Index
  0-based index where to insert the entity

EntitiesArray
  Array of entities to insert at Index

Inserts the specified entities at the specified index in the EntityGroup.

# Syntax

Visual Basic |
--- | ---
    Sub InsertEntitiesAt( _
       ByVal Index As System.Integer, _
       ByVal EntitiesArray As System.Object _
    )

C# |
--- | ---
    void InsertEntitiesAt(
       System.int Index,
       System.object EntitiesArray
    )

JavaScript |
--- | ---
    InsertEntitiesAt(
       Index : Number,
       EntitiesArray : Array
    )

COM native C++ |
--- | ---
    HRESULT InsertEntitiesAt(
       LONG Index,
       VARIANT EntitiesArray
    )

C++ |
--- | ---
    DSRESULT InsertEntitiesAt(
       long Index,
       const dsObjectPtrArray& EntitiesArray
    )

#### Parameters

Index
  0-based index where to insert the entity
EntitiesArray
  Array of entities to insert at Index

# Example

Create and Change EntityGroups (C#)
Create and Change EntityGroups (VB.NET)
Create and Change EntityGroups (VBA)
Create and Change EntityGroups (JavaScript)

# Remarks

Before calling this method, call IGroup::GetEntitiesCount to determine a valid value for Index.

# See Also

####

IGroup Interface
IGroup Members
IGroup::AddEntities Method ()
IGroup::RemoveEntities Method ()
IGroup::RemoveEntityAt Method ()
IGroup::Reorder Method ()
IGroup::ReverseOrder Method ()

# Availability

DraftSight V1R4.0