ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutView Class / GetViewSize Method

In This Topic
    GetViewSize Method (LayoutView)
    In This Topic
    Returns the current size of the view in pixels.
    Syntax
    public Size GetViewSize()
    Public Function GetViewSize() As Size

    Return Value

    The current size of the view in pixels.
    Remarks
    This method must be called on the UI thread
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also