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


IConstructEllipticArc.ConstructEnvelope Method (ArcObjects .NET 10.8 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 _
)
[C#]
public void ConstructEnvelope (
    IEnvelope boundingEnvelope
);
[C++]
HRESULT ConstructEnvelope(
  IEnvelope* boundingEnvelope
);
[C++]
Parameters
boundingEnvelope 

boundingEnvelope is a parameter of type IEnvelope*

Product Availability

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

Description

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.

Remarks

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

 

IConstructEllipticArc ConstructEnvelope Example

[C#]
public IEllipticArc CreateFullEclipticArcFull(IEnvelope envelope)
{
   IConstructEllipticArc constructEllipticArc = new EllipticArcClass();
   constructEllipticArc.ConstructEnvelope(envelope);
   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
        pConstEArc.ConstructEnvelope(pEnv)
        CreateEArcFull = pConstEArc
    End Function

See Also

IConstructEllipticArc Interface