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


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

IEnvelope.XMax Property

The position of the right side.

[Visual Basic .NET]
Public Property XMax As Double
[C#]
public double XMax {get; set;}
[C++]
HRESULT get_XMax(
  System.Double* XMax
);
[C++]
HRESULT put_XMax(
  double XMax
);
[C++]
Parameters
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.

Description

XMax is the right side coordinate of the envelope.

Remarks

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

Envelope XMax Example

[C#]

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 Samples

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