2.19.25 PageViewMode


Description

Indicates current View Mode properti of this GraphPage

Syntax

VB: Property Get/Let PageViewMode As Integer
C++: int PageViewMode
C#: int PageViewMode

Remark

Examples

VB

    Sub PageView()
        Dim app As Origin.IOApplication
        Dim gp As Origin.GraphPage

        app = New Origin.ApplicationSI
        gp = app.GraphPages.Item(0)
        If gp Is Nothing Then
            MsgBox("There is no graphpage in current project")
            Exit Sub
        End If

        Dim mode As Integer
        mode = gp.PageViewMode

        Dim strViewMode As String = "Nothing"
        If mode = 0 Then
            strViewMode = "Print View"
        ElseIf mode = 1 Then
            strViewMode = "Page View"
        ElseIf mode = 2 Then
            strViewMode = "Window View"
        ElseIf mode = 3 Then
            strViewMode = "Draft View"
        End If

        MsgBox(strViewMode)
    End Sub

Version Information

8.0SR2

See Also