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


IEnvelope.YMax 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.YMax Property
ArcGIS Developer Help

IEnvelope.YMax Property

The position of the top.

[Visual Basic .NET]
Public Property YMax As Double
[C#]
public double YMax {get; set;}
[C++]
HRESULT get_YMax(
  System.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

Product Availability

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

Description

YMax is the top coordinate of the envelope.

Remarks

Setting Ymax to a value smaller than Ymin will reverse Ymin and Ymax. Use PutCoords to avoid this behavior.

Envelope YMax Example

[C#]

The following C# code shows how to get the YMax property from an envelope:


yMax = env.YMax;

See Also

IEnvelope Interface | IEnvelope.YMin Property | IEnvelope.XMin Property | IEnvelope.XMax Property

.NET Samples

Custom scene navigation commands Custom scene navigation commands Dynamic display animated zoom Dynamic display animated zoom 3D multipatch examples Dynamic display layer