ArcObjects Library Reference (Geometry)  

IEnvelope.XMax Property

The position of the right side.

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


XMax [out, retval]   XMax is a parameter of type double XMax   XMax is a parameter of type double

Product Availability

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


XMax is the right side coordinate of the envelope.


Setting Xmax to a value smaller than Xmin will reverse Xmin and Xmax. Use PutCoords to avoid this behavior.

Envelope XMax Example


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

xMax = env.XMax;

See Also

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

.NET Snippets

Create Low Precision Spatial Reference | Create Grid From Feature Class

.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