ArcObjects Library Reference  (Geometry)    

IEnvelope.Offset Method

Moves the sides x units horizontally and y units vertically.

[Visual Basic 6.0]
Sub Offset(
    ByVal X As Double, _
    ByVal Y As Double _
)
[Visual Basic .NET]
Public Sub Offset ( _
    ByVal X As Double, _
    ByVal Y As Double _
)
[C#]
public void Offset (
    double X,
    double Y
);
[Java]
public void offset (
    double X,
    double Y
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Offset(
  double X,
  double Y
);
[C++]

Parameters

X

  X is a parameter of type double

Y

  Y is a parameter of type double

Product Availability

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

Description

Offset moves the position of the Envelope.  A positive X value will shift the Envelope to the right and a negative value to the left. A positive Y value will shift the Envelope up and a negative value down.  The Width and Height of the Envelope remain unchanged.  Only the XMin, YMin, XMax, and YMax are changed.

Remarks

The new position of the Envelope is as follows:

new XMin= old XMin + X
new YMin = old YMin + Y
new XMax = old XMax + X
new YMax = old YMax + Y

Envelope Offset Example

See Also

IEnvelope Interface | IEnvelope.Union Method | IEnvelope.Intersect Method | IEnvelope.Expand Method | IEnvelope.CenterAt Method

Example

Envelope_Offset_Example

 


Feedback Send feedback on this page