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


IElement.QueryBounds Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IElement Interface > IElement.QueryBounds Method
ArcGIS Developer Help

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