ArcObjects Library Reference  (Geometry)    

IEnvelope.CenterAt Method

Moves this envelope so it is centered at p.

[Visual Basic 6.0]
Sub CenterAt(
    ByVal p As IPoint _
)
[Visual Basic .NET]
Public Sub CenterAt ( _
    ByVal p As IPoint _
)
[C#]
public void CenterAt (
    IPoint p
);
[Java]
public void centerAt (
    IPoint p
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CenterAt(
  IPoint* p
);
[C++]

Parameters

p

  p is a parameter of type IPoint

Product Availability

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

Description

Moves the Envelope so that the center point of the Envelope is at the given input point.  The Width, Height, and other properties of the Envelope remain unchanged (only the XMin, XMax, YMin, and YMax are altered).

Remarks

The Center Point occurs at: ((XMin + XMax) / 2, (YMin + YMax) / 2).

See Also

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

Example

IEnvelope_CenterAt_Example

 


Feedback Send feedback on this page