ArcObjects Library Reference (Geometry)  

IEnvelope.YMax Property

The position of the top.

[Visual Basic .NET]
Public Property YMax As Double
public double YMax {get; set;}
  double* YMax
  double YMax


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.


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.

Envelope YMax Example


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 Snippets

Create Low Precision Spatial Reference

.NET Samples

3D multipatch examples (Code Files: ExtrusionExamples) | Dynamic display animated zoom (Code Files: AnimatedZoomInTool AnimatedZoomOutTool) | Dynamic display layer (Code Files: MyDynamicLayerClass) | Custom scene navigation commands (Code Files: ZoomIn ZoomOut)

.NET Related Topics

How to set raster properties when saving as a raster | How to split a raster dataset into multiple tiles | Listening to the OnValidate event for a geodatabase topology | Working with map surrounds | Working with the analysis environment