This document is archived and information here might be outdated.  Recommended version.

IEllipticArc.QueryCoords Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEllipticArc Interface > IEllipticArc.QueryCoords Method
ArcGIS Developer Help

IEllipticArc.QueryCoords Method

Copies the center and endpoints, angle of rotation, orientation and major/minor properties into the method parameters.

[Visual Basic .NET]
Public Sub QueryCoords ( _
    ByVal ellipseStd As Boolean, _
    ByVal Center As IPoint, _
    ByVal from As IPoint, _
    ByVal to As IPoint, _
    ByRef rotationAngle As Double, _
    ByRef minorMajorRatio As Double, _
    ByRef isCCW As Boolean, _
    ByRef minor As Boolean _
public void QueryCoords (
    bool ellipseStd,
    IPoint Center,
    IPoint from,
    IPoint to,
    ref double rotationAngle,
    ref double minorMajorRatio,
    ref bool isCCW,
    ref bool minor
HRESULT QueryCoords(
  VARIANT_BOOL ellipseStd,
  IPoint* Center,
  IPoint* from,
  IPoint* to,
  System.Double* rotationAngle,
  System.Double* minorMajorRatio,
  Boolean* isCCW,
  Boolean* minor

ellipseStd is a parameter of type bool Center
Center is a parameter of type IPoint* from
from is a parameter of type IPoint* to
to is a parameter of type IPoint* rotationAngle [in, out]
rotationAngle is a parameter of type double* minorMajorRatio [in, out]
minorMajorRatio is a parameter of type double* isCCW [in, out]
isCCW is a parameter of type bool* minor [in, out]
minor is a parameter of type bool*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Given the EllipseStd value, returns the Center Point, From Point, To Point, Rotation Angle, Minor Axis to Major Axis Ratio, IsCounterClockwise value, and IsMinor value of the Elliptic Arc.  If EllipseStd = TRUE, the From Point and To Point locations are relative offsets from the Center Point rather than the origin.


These are the necessary inputs for PutCoords, except in special cases (half ellipse, full ellipse, Central Angle = 0, and Minor to Major Ratio = 0) where the ArcOrientation must know which of these cases exists to ensure that the desired Elliptic Arc is unambiguous. Any of the output parameters can be set to nil if that info is not desired.

-isCCW stands for "is counter clockwise"

IEllipticArc QueryCoords Example

See Also

IEllipticArc Interface | IEllipticArc.PutCoords Method