ArcGIS Pro 2.8 API Reference Guide
GetAxes Method (EllipticArcBuilder)
Example 

ArcGIS.Core.Geometry Namespace > EllipticArcBuilder Class : GetAxes Method
Output parameter representing length of the semi-major axis.
Output parameter representing length of the semi-minor axis.
Gets the semi-major and semi-minor axes. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void GetAxes( 
   out double semiMajorAxis,
   out double semiMinorAxis
)
Public Sub GetAxes( _
   ByRef semiMajorAxis As Double, _
   ByRef semiMinorAxis As Double _
) 

Parameters

semiMajorAxis
Output parameter representing length of the semi-major axis.
semiMinorAxis
Output parameter representing length of the semi-minor axis.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
// Construct an elliptic arc centered at (1,1), startAngle = 0, centralAngle = PI/2, 
// rotationAngle = 0, semiMajorAxis = 1, minorMajorRatio = 0.5.
// Use a builder convenience method or use a builder constructor.

Coordinate2D centerPt = new Coordinate2D(1, 1);

// Builder convenience methods don't need to run on the MCT.
EllipticArcSegment circularArc = EllipticArcBuilder.CreateEllipticArcSegment(centerPt, 0, Math.PI / 2, 0, 1, 0.5);

double semiMajor;
double semiMinor;
circularArc.GetAxes(out semiMajor, out semiMinor);
// semiMajor = 1, semiMinor = 0.5

// Builder constructors need to run on the MCT.
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
  using (EllipticArcBuilder cab = new EllipticArcBuilder(centerPt, 0, Math.PI / 2, 0, 1, 0.5))
  {
    // do something with the builder

    EllipticArcSegment otherCircularArc = cab.ToSegment();
  }
});
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EllipticArcBuilder Class
EllipticArcBuilder Members