2.26.4 Item


Description

Get a MatrixObject in the MatrixSheet with an index

Syntax

VB: Property Get Item(Index As ByVal Object ) As MatrixObject
C++: MatrixObject Item(_variant_t Index )
C#: MatrixObject Item(var Index )

Parameters

Index
--

Remark

Examples

VB

    Sub MatrixItem()
        Dim app As Origin.IOApplication
        Dim msh As Origin.MatrixSheet

        app = New Origin.ApplicationSI
        msh = app.FindMatrixSheet("") 'get active matrixsheet

        If msh Is Nothing Then
            MsgBox("Can not get active matrixsheet")
            Exit Sub
        End If
        Dim mtx As Origin.MatrixObject
        mtx = msh.MatrixObjects.Item(0) 'get first matrixobject
        MsgBox(mtx.LongName)

    End Sub

Version Information

8.0SR2

See Also