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


IEnvelope2.QueryZCoords Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IEnvelope2.QueryZCoords Method

Queries the minimum and maximum Z values simultaneously.

[Visual Basic .NET]
Public Sub QueryZCoords ( _
    ByRef ZMin As Double, _
    ByRef ZMax As Double _
)
[C#]
public void QueryZCoords (
    ref double ZMin,
    ref double ZMax
);
[C++]
HRESULT QueryZCoords(
  double* ZMin,
  double* ZMax
);
[C++]

Parameters ZMin [out] ZMin is a parameter of type double ZMax [out] ZMax is a parameter of type double

Product Availability

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

Description

Returns the values of ZMin and ZMax respectively.

[C#]


       
public static void TestQueryZCoords()

        {

            IEnvelope2 envelope=GetEnvelopeGeometry() as IEnvelope2;

 

            double zMin, zMax;

 

            envelope.QueryZCoords(out zMin, out zMax);

 

            //zMin=-14.131

            //zMax=-4.131

        }

 

See Also

IEnvelope2 Interface