Visual Basic | |
---|---|
Sub Reorder( _ ByVal CurrentIndex As System.Integer, _ ByVal NewIndex As System.Integer, _ ByVal EntityCount As System.Integer _ ) |
C# | |
---|---|
void Reorder( System.int CurrentIndex, System.int NewIndex, System.int EntityCount ) |
JavaScript | |
---|---|
Reorder( CurrentIndex : Number, NewIndex : Number, EntityCount : Number ) |
COM native C++ | |
---|---|
HRESULT Reorder( LONG CurrentIndex, LONG NewIndex, LONG EntityCount ) |
C++ | |
---|---|
DSRESULT Reorder( long CurrentIndex, long NewIndex, long EntityCount ) |
Parameters
- CurrentIndex
- Current starting 0-based index of the entities that you want to reorder
- NewIndex
- New starting 0-based index of the entities that you wanted reordered, after the entities are reordered
- EntityCount
- Number of entities to reorder (see Remarks)
EntityCount must be <= IGroup::GetEntitiesCount - NewIndex.
For example, if you have a group of five lines (line1, line2, line3, line4, and line5) and call IGroup::Reorder:
Passing these parameters... | Then the lines are reordered as... |
(0, 3, 1) | (line2, line3, line4, line1, line5) |
(0, 3, 2) | (line3, line4, line5, line1, line2) |
DraftSight V1R4.0