API Reference > OdDg Classes > OdDgTable Class > OdDgTable Methods > OdDgTable::moveToIndex Method
OdDgTable::moveToIndex Method
Syntax
C++
virtual OdResult moveToIndex(OdUInt32 uIndex, OdDgElementId& idTableRecord, bool bSkipDeleted = true);
Parameters 
Description 
OdUInt32 uIndex 
[in] number from the start position into the table.  
OdDgElementId& idTableRecord 
[in] element id of the table record to move.  
bool bSkipDeleted = true 
[in] skip erased elements. 

eOk if table record was moved to the index position of the table.

Move table record from the table to the position with defined index of the table. 

 

The table record must be from the table. The function is only change position of the table record and doesn't add it to the table.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.