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


ISegmentZ.SetZs Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentZ Interface > ISegmentZ.SetZs Method
ArcGIS Developer Help

ISegmentZ.SetZs Method

Set the Zs on the segment's endpoints.

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

fromZ is a parameter of type double toZ
toZ is a parameter of type double

Product Availability

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

Description

Sets the Z attributes for the From and To points of the segment.  These attributes can be set regardless of the attribute awareness of the segment.

[C#]

 

        public static void SetZs()

        {

               const double FromZ = 5;

               const double ToZ = 5;

 

               IGeometry geometry = GetLineGeometry();


               ISegmentZ
 segmentZ = geometry as ISegmentZ;

               segmentZ.SetZs(FromZ, ToZ);

        }

See Also

ISegmentZ Interface