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


IEnvelope.UpperLeft Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnvelope Interface > IEnvelope.UpperLeft Property
ArcGIS Developer Help

IEnvelope.UpperLeft Property

The upper left corner.

[Visual Basic .NET]
Public Property UpperLeft As IPoint
[C#]
public IPoint UpperLeft {get; set;}
[C++]
HRESULT get_UpperLeft(
  IPoint** UpperLeft
);
[C++]
HRESULT put_UpperLeft(
  IPoint* UpperLeft
);
[C++]
Parameters
UpperLeft [out, retval]

UpperLeft is a parameter of type IPoint** UpperLeft
UpperLeft is a parameter of type IPoint*

Product Availability

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

Remarks


Returns or sets the UpperLeft point of an Envelope .

Envelope UpperLeft Example

[C#]

    private void printEnvelope(IEnvelope envelope)
    {
        IPoint lowerLeft = envelope.LowerLeft;
        IPoint lowerRight = envelope.LowerRight;
        IPoint upperLeft = envelope.UpperLeft;
        IPoint upperRight = envelope.UpperRight;

        String report = "LowerLeft  X  = " + lowerLeft.X + "\n" +
                        "LowerLeft  Y  = " + lowerLeft.Y + "\n\n" +
                        "LowerRight X = " + lowerRight.X + "\n" +
                        "LowerRight Y = " + lowerRight.Y + "\n\n" +
                        "UpperLeft  X  = " + upperLeft.X + "\n" +
                        "UpperLeft  Y  = " + upperLeft.Y + "\n\n" +
                        "UpperRight X = " + upperRight.X + "\n" +
                        "UpperRight Y = " + upperRight.Y;


        System.Windows.Forms.MessageBox.Show(report);
    }

See Also

IEnvelope Interface | IEnvelope.LowerLeft Property | IEnvelope.LowerRight Property | IEnvelope.UpperRight Property | IEnvelope.Height Property | IEnvelope.Width Property