ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / Presentation Class / SetAspectRatio Method
The horizontal component of the aspect ratio
The vertical component of the aspect ratio

In This Topic
    SetAspectRatio Method
    In This Topic
    Changes the aspect ratio of the presentation. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetAspectRatio( 
       int width,
       int height
    )
    Public Sub SetAspectRatio( _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) 

    Parameters

    width
    The horizontal component of the aspect ratio
    height
    The vertical component of the aspect ratio
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Remarks
    For example, SetAspectRatio(16, 9) changes the aspect ratio to 16:9.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also