Indicate the position of this object in current container
VB: Property Get/Let Index As Integer
C++: int Index
C#: int Index
Sub GetIndex() Dim app As Origin.IOApplication Dim obj As Origin.OriginObject app = New Origin.ApplicationSI obj = app.FindWorksheet("[body]body") If obj Is Nothing Then MsgBox("Can not get specified object") Exit Sub End If MsgBox(obj.Index) 'if the specified sheet is the third one, Index will be two End Sub
8.0SR2