ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElement Interface / SetAnchorPoint Method
The new anchor point location
Version

SetAnchorPoint Method (IElement)
Sets the element anchor point to the X and Y location specified. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
void SetAnchorPoint( 
   Coordinate2D anchorPoint
)

Parameters

anchorPoint
The new anchor point location
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
This element requires its mapview to be active
Remarks
Placement for an element contained in graphics layer requires the mapview be active.
. Use SetX and SetY to change the anchor point X and Y individually. Changing the element anchor point location does not change its anchor position relative to its element. Anchor position is modified via SetAnchor.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also