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


IEnvelope2.PutZCoords 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.PutZCoords Method
ArcGIS Developer Help

IEnvelope2.PutZCoords Method

Sets the minimum and maximum Z values simultaneously.

[Visual Basic .NET]
Public Sub PutZCoords ( _
    ByVal ZMin As Double, _
    ByVal ZMax As Double _
)
[C#]
public void PutZCoords (
    double ZMin,
    double ZMax
);
[C++]
HRESULT PutZCoords(
  double ZMin,
  double ZMax
);
[C++]
Parameters
ZMin 

ZMin is a parameter of type double ZMax
ZMax is a parameter of type double

Product Availability

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

Description

Sets the ZMin and ZMax simultaneously.  This avoids complications of setting ZMin and ZMax individually in which they could become inconsistent.

[C#]

 

        public static void TestPutZCoords()

        {

            const double ZMin = -10;

            const double ZMax = -5;

 

            IEnvelope2 envelope = GetEnvelopeGeometry() as IEnvelope2;

 

            envelope.PutZCoords(ZMin, ZMax);

        }

 

See Also

IEnvelope2 Interface