InsertRectangularViewport Method (ISheet)

InsertRectangularViewport Method (ISheet) | Send Feedback
See Also Example

Viewport[out]
  Rectangular Viewport

Mode
  Type of Viewport as defined in dsStandardViewports_e

Fit
  True to create a Viewport that fills the Sheet to the edges of the printable area, false to create a Viewport that fits the entire Sheet

StartCorner
  First corner point for the Viewport

OppositeCorner
  Second and opposite corner point from StartCorner for the Viewport

Inserts a rectangular Viewport.

# Syntax

Visual Basic |
--- | ---
    Function InsertRectangularViewport( _
       ByVal Mode As dsStandardViewports_e, _
       ByVal Fit As System.Boolean, _
       ByVal StartCorner As MathPoint, _
       ByVal OppositeCorner As MathPoint _
    ) As Viewport

C# |
--- | ---
    Viewport InsertRectangularViewport(
       dsStandardViewports_e Mode,
       System.bool Fit,
       MathPoint StartCorner,
       MathPoint OppositeCorner
    )

JavaScript |
--- | ---
    InsertRectangularViewport(
       Mode : String,
       Fit : Boolean,
       StartCorner : dsMathPoint,
       OppositeCorner : dsMathPoint
    ) : dsViewport

COM native C++ |
--- | ---
    HRESULT InsertRectangularViewport(
       dsStandardViewports_e Mode,
       VARIANT_BOOL Fit,
       IMathPoint* StartCorner,
       IMathPoint* OppositeCorner,
       IViewport** Viewport
    )

C++ |
--- | ---
    DSRESULT InsertRectangularViewport(
       dsStandardViewports_e Mode,
       bool Fit,
       dsMathPoint* StartCorner,
       dsMathPoint* OppositeCorner,
       dsViewport** Viewport
    )

#### Parameters

Mode
  Type of Viewport as defined in dsStandardViewports_e
Fit
  True to create a Viewport that fills the Sheet to the edges of the printable area, false to create a Viewport that fits the entire Sheet
StartCorner
  First corner point for the Viewport
OppositeCorner
  Second and opposite corner point from StartCorner for the Viewport
Viewport[out] or Return Value
  Rectangular Viewport

# Example

Create Rectangular Viewport (C#)
Create Rectangular Viewport (VB.NET)
Create Rectangular Viewport (VBA)
Create Rectangular Viewport (JavaScript)

# See Also

####

ISheet Interface
ISheet Members
ISheet::InsertPolygonalViewport Method
ISheet::InsertViewportByEntity Method

# Availability

DraftSight V1R3.0