ArcObjects Library Reference  (Geometry)    

IEnvelope.XMax Property

The position of the right side.

[Visual Basic 6.0]
Property XMax As Double
[Visual Basic .NET]
Public Property XMax As Double
[C#]
public double XMax {get; set;}
[Java]
public Double getXMax()
throws
    IOException,
    AutomationException
[Java]
public void setXMax(
Double XMax
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_XMax(
  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;

[Visual Basic 6.0]

The following Visual Basic code shows how to get the XMax property from an envelope:

dXMax = m_pEnveLope.XMax 

See Also

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

 


Feedback Send feedback on this page