ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Camera Class / ViewportWidth Property

In This Topic
    ViewportWidth Property (Camera)
    In This Topic
    Gets or sets the width of the viewport (in meters), required for consistent isometric camera positioning.
    Syntax
    public double ViewportWidth {get; set;}
    Public Property ViewportWidth As Double
    Remarks
    ViewportHeight and ViewportWidth are used to define the view extent when Isometric Drawing Mode is enabled. In Perspective mode the width and height are naturally defined by the camera's field of view, but in Isometric mode the light rays are parallel so additional information is required. If these parameters are set to less than or equal to 0, a width and height will be estimated based on the camera's distance from the surface, which may lead to inconsistent isometric view extents in bookmarks, animations, and exported views.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also