Indicates current View Mode properti of this GraphPage
VB: Property Get/Let PageViewMode As Integer
C++: int PageViewMode
C#: int PageViewMode
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
8.0SR2