API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > OdDbTable::insertColumnsAndInherit Method
OdDbTable::insertColumnsAndInherit Method
Syntax
C++
void insertColumnsAndInherit(OdInt32 col, OdInt32 nInheritFrom, OdInt32 nNumCols);
Parameters 
Description 
OdInt32 col 
[in] Index.  
OdInt32 nInheritFrom 
[in] Column number in the table that the format will be inherited from.  
OdInt32 nNumCols 
[in] Number of inserted columns. 

Inserts columns at the specified index and inherits their format from the reference column. 

 

Method generates the eInvalidInput exception when the number of rows or columns is zero.

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