ArcGIS Pro 2.7 API Reference Guide
GetBounds Method

ArcGIS.Desktop.Layouts Namespace > Element Class : GetBounds Method
True to retrieve the rotated bounds
Gets the bounding box for the element. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Envelope GetBounds( 
   bool rotated
)
Public Function GetBounds( _
   Optional ByVal rotated As Boolean _
) As Envelope

Parameters

rotated
True to retrieve the rotated bounds

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Remarks
Bounds always reflect the element extent in a non-rotated orientation. If element rotation is non-zero, use graphicBounds = true to return the minimum bounding box enclosing the element in its rotated position
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Element Class
Element Members