ArcObjects Library Reference (Carto)  

IElement.QueryBounds Method

Bounds of the element taking symbology into consideration.

[Visual Basic .NET]
Public Sub QueryBounds ( _
    ByVal Display As IDisplay, _
    ByVal Bounds As IEnvelope _
)
[C#]
public void QueryBounds (
    IDisplay Display,
    IEnvelope Bounds
);
[C++]
HRESULT QueryBounds(
  IDisplay* Display,
  IEnvelope* Bounds
);
[C++]

Parameters

Display [in]

  Display is a parameter of type IDisplay

Bounds [in]

  Bounds is a parameter of type IEnvelope

Product Availability

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

Remarks

QueryBounds returns an envelope representing the boundary of the element.  A valid envelope object must be passed in to the method along with the current display.  The method then updates the envelope object based on the minimum bounding rectangle of the element.

See Also

IElement Interface

.NET Samples

Move a graphic along a path in ArcMap (Code Files: MapGraphicKeyframe)