OriginObject::GetIndex

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

Description

Get the index of an object in a Collection

Syntax

GetIndex()

Parameters

Return

the index of an object in a Collection

Examples

EX1

import PyOrigin
#Assume a worksheet is active
wks = PyOrigin.ActiveLayer()
index=wks.GetIndex()
print('Current sheet index = %i' % (index))

See Also

SetIndex