This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IElement Interface > IElement.QueryBounds Method (ArcObjects .NET 10.5 SDK) |
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
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.