ArcObjects Library Reference (Display)  

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(
  long hDC,
  ITransformation* displayTransform,
  IGeometry* drawGeometry,
  IEnvelope* envelope
);
[C++]

Parameters

hDC [in]   hDC is a parameter of type long 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