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


IQueryGeometry.QueryEnvelope Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IQ > IQueryGeometry Interface > IQueryGeometry.QueryEnvelope Method
ArcGIS Developer Help

IQueryGeometry.QueryEnvelope Method

Queries the envelope of the boundary of the object.

[Visual Basic .NET]
Public Sub QueryEnvelope ( _
    ByVal hDC As Integer, _
    ByVal displayTransform As ITransformation, _
    ByVal drawGeometry As IGeometry, _
    ByVal envelope As IEnvelope _
)
[C#]
public void QueryEnvelope (
    int hDC,
    ITransformation displayTransform,
    IGeometry drawGeometry,
    IEnvelope envelope
);
[C++]
HRESULT QueryEnvelope(
  OLE_HANDLE hDC,
  ITransformation* displayTransform,
  IGeometry* drawGeometry,
  IEnvelope* envelope
);
[C++]
Parameters
hDC [in]

hDC is a parameter of type OLE_HANDLE displayTransform [in]
displayTransform is a parameter of type ITransformation* drawGeometry [in]
drawGeometry is a parameter of type IGeometry* envelope [in]
envelope is a parameter of type IEnvelope*

Product Availability

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

Description

You must instantiate the Envelope before calling QueryEnvelope. For example,

Dim pEnv as IEnvelope
Set pEnv = New Envelope

See Also

IQueryGeometry Interface