This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnvelope2 Interface > IEnvelope2.QueryZCoords Method (ArcObjects .NET 10.5 SDK) |
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
Returns the values of ZMin and ZMax respectively.
public static void TestQueryZCoords()
{
IEnvelope2 envelope=GetEnvelopeGeometry() as IEnvelope2;
double zMin, zMax;
envelope.QueryZCoords(out zMin, out zMax);
//zMin=-14.131
//zMax=-4.131
}