OriginObject::GetIndex

Description

Get the index of an object in an Origin C Collection

Syntax

int GetIndex( )

Parameters

Return

The object's index, zero offset.

Examples

EX1

// Assume a worksheet is active
void OriginObject_GetIndex_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    out_int("Current sheet index = ", wks.GetIndex());
}

Remark

Get the index of an object in an Origin C Collection. For example, return the index of a column in the worksheet.

See Also

OriginObject::SetIndex

header to Include

origin.h