ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElement Interface / GetBounds Method
True to retrieve the rotated bounds

In This Topic
    GetBounds Method (IElement)
    In This Topic
    Gets the bounding box for the element. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Envelope GetBounds( 
       bool rotated
    )
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also