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


IGeometry.QueryEnvelope Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometry Interface > IGeometry.QueryEnvelope Method
ArcGIS Developer Help

IGeometry.QueryEnvelope Method

Copies this geometry's envelope properties into the specified envelope.

[Visual Basic .NET]
Public Sub QueryEnvelope ( _
    ByVal outEnvelope As IEnvelope _
)
[C#]
public void QueryEnvelope (
    IEnvelope outEnvelope
);
[C++]
HRESULT QueryEnvelope(
  IEnvelope* outEnvelope
);
[C++]
Parameters
outEnvelope 

outEnvelope is a parameter of type IEnvelope*

Product Availability

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

Description

Returns the unique Envelope that binds the Geometry object.  This is the smallest Envelope that Contains the object.

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

QueryEnvelope Example

See Also

IGeometry Interface