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

IConstructEllipticArc.ConstructEnvelope Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > IConstructEllipticArc Interface > IConstructEllipticArc.ConstructEnvelope Method
ArcGIS Developer Help

IConstructEllipticArc.ConstructEnvelope Method

Constructs the inscribed ellipse of the given envelope. The ellipse is oriented counterclockwise.

[Visual Basic .NET]
Public Sub ConstructEnvelope ( _
    ByVal boundingEnvelope As IEnvelope _
public void ConstructEnvelope (
    IEnvelope boundingEnvelope
HRESULT ConstructEnvelope(
  IEnvelope* boundingEnvelope

boundingEnvelope is a parameter of type IEnvelope*

Product Availability

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


ConstructEnvelope creates an EllipticArc from a given Envelope.  The constructed EllipticArc is the full EllipticArc that has the given Envelope as its Envelope.  The EllipticArc has a Major Axis equal to the larger of the Width and Height, and the Minor Axis equal to the smaller of the Width and Height.  The CenterPoint of the EllipticArc is the CenterPoint of the Envelope.


The method ignores the Z values of the given envelope and therefore the output elliptic arc is 2D.


IConstructEllipticArc ConstructEnvelope Example

public IEllipticArc CreateFullEclipticArcFull(IEnvelope envelope)
   IConstructEllipticArc constructEllipticArc = new EllipticArcClass();
   return constructEllipticArc as IEllipticArc;
[Visual Basic .NET]

    Public Function CreateEArcFull(ByVal pEnv As ESRI.ArcGIS.Geometry.IEnvelope) As ESRI.ArcGIS.Geometry.IEllipticArc
        Dim pConstEArc As ESRI.ArcGIS.Geometry.IConstructEllipticArc
        pConstEArc = New ESRI.ArcGIS.Geometry.EllipticArc
        CreateEArcFull = pConstEArc
    End Function

See Also

IConstructEllipticArc Interface