GetIndex Method (IGroup)

GetIndex Method (IGroup) | Send Feedback
See Also Example

Index[out]
  0-based index of the entity within the EntityGroup

Entity
  Entity whose index to get within the EntityGroup

Gets the index of the specified entity within the EntityGroup.

# Syntax

Visual Basic |
--- | ---
    Function GetIndex( _
       ByVal Entity As System.Object _
    ) As System.Integer

C# |
--- | ---
    System.int GetIndex(
       System.object Entity
    )

JavaScript |
--- | ---
    GetIndex(
       Entity : Object
    ) : Number

COM native C++ |
--- | ---
    HRESULT GetIndex(
       IDispatch* Entity,
       LONG* Index
    )

C++ |
--- | ---
    DSRESULT GetIndex(
       dsObject* Entity,
       long* Index
    )

#### Parameters

Entity
  Entity whose index to get within the EntityGroup
Index[out] or Return Value
  0-based index of the entity within the EntityGroup

# Example

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

# See Also

####

IGroup Interface
IGroup Members
IGroup::GetEntities Method ()
IGroup::InsertEntitiesAt Method ()
IGroup::RemoveEntityAt Method ()
IGroup::Reorder Method ()
IGroup::ReverseOrder Method ()

# Availability

DraftSight V1R4.0