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


IEnvelope2.QueryZCoords Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnvelope2 Interface > IEnvelope2.QueryZCoords Method
ArcGIS Developer Help

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(
  System.Double* ZMin,
  System.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