GetIndex
Get the index of object in layer, 0 based.
int GetIndex( )
Index of object in layer or -1 if invalid.
EX1
void DataObjectBase_GetIt_ex1() { Worksheet wks; wks.Create("origin"); if(wks) { int nCol = wks.Columns("B").GetIndex(); string strNewColName; if(nCol >=0) wks.InsertCol(nCol+1, "Result", strNewColName); } }
origin.h