ArcGIS Pro 2.3 API Reference Guide
GetAnchor Method
Example 

ArcGIS.Desktop.Layouts Namespace > Element Class : GetAnchor Method
Gets the anchor position of the element. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function GetAnchor() As Anchor
public Anchor GetAnchor()

Return Value

Returns an Anchor
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
Example
//Change the element's anchor position

//Perform on the worker thread
await QueuedTask.Run(() =>
{
  Anchor elmAnchor = element.GetAnchor();
  elmAnchor = Anchor.CenterPoint;

  element.SetAnchor(elmAnchor); //You don't have to get to set; a shortcut would be: element.SetAnchor(Anchor.CenterPoint);
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Element Class
Element Members