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

ISegmentZ.SetZs Method (ArcObjects .NET 10.7 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 _
public void SetZs (
    double fromZ,
    double toZ
  double fromZ,
  double toZ

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.


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.



        public static void SetZs()


               const double FromZ = 5;

               const double ToZ = 5;


               IGeometry geometry = GetLineGeometry();

 segmentZ = geometry as ISegmentZ;

               segmentZ.SetZs(FromZ, ToZ);


See Also

ISegmentZ Interface