2.4.2 Count


Description

Indicate the number of items in this collection

Syntax

VB: Property Get Count As Integer
C++: int Count
C#: int Count

Remark

Examples

VB

    Sub GetNumOfPages()
        Dim app As Origin.IOApplication
        Dim nNum As Integer

        app = New Origin.ApplicationSI
        nNum = app.PageBases.Count
        MsgBox("Number of PageBases is " + nNum.ToString())
        nNum = app.Pages.Count
        MsgBox("Number of Pages is " + nNum.ToString())
    End Sub

Python

import OriginExt as O
app = O.Application(); app.Visible = app.MAINWND_SHOW
app.CreatePage(app.OPT_WORKSHEET)
app.CreatePage(app.OPT_GRAPH)
app.CreatePage(app.OPT_MATRIX)
print(app.PageBases.Count)

Version Information

8.0SR2

See Also