This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnvelope Interface > IEnvelope.YMax Property (ArcObjects .NET 10.5 SDK) |
The position of the top.
[Visual Basic .NET] Public Property YMax As Double
[C#] public double YMax {get; set;}
[C++]
HRESULT get_YMax(
double* YMax
);
[C++]
HRESULT put_YMax(
double YMax
);
[C++]
Parameters YMax [out, retval] YMax is a parameter of type double YMax YMax is a parameter of type double
YMax is the top coordinate of the envelope.
Setting Ymax to a value smaller than Ymin will reverse Ymin and Ymax. Use PutCoords to avoid this behavior.
The following C# code shows how to get the YMax property from an envelope:
yMax=env.YMax;
IEnvelope Interface | IEnvelope.YMin Property | IEnvelope.XMin Property | IEnvelope.XMax Property