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


IEnvelope.YMax Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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(
  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 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