GetIndex
Get the index of an object in an Origin C Collection
int GetIndex( )
The object's index, zero offset.
EX1
// Assume a worksheet is active void OriginObject_GetIndex_Ex1() { Worksheet wks = Project.ActiveLayer(); out_int("Current sheet index = ", wks.GetIndex()); }
Get the index of an object in an Origin C Collection. For example, return the index of a column in the worksheet.
OriginObject::SetIndex
origin.h