ArcGIS Pro 2.7 API Reference Guide
GetViewSize Method (LayoutView)

ArcGIS.Desktop.Layouts Namespace > LayoutView Class : GetViewSize Method
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 10, Windows 8.1

See Also

Reference

LayoutView Class
LayoutView Members