Show / Hide Table of Contents

Method WithZ

WithZ<T>(T, Double)

Returns a copy of a geometry with the supplied z-coordinate.

Declaration
public static T WithZ<T>(this T geometry, double z)
    where T : Geometry
Parameters
Type Name Description
T geometry

A geometry.

System.Double z

The Z ordinate.

Returns
Type Description
T

A copy of the given geometry with its z-coordinates set to the supplied value.

Type Parameters
Name Description
T
Remarks

If the given geometry already has z-coordinates, they are replaced within the resulting geometry by the supplied z-value. The resulting geometry will have HasZ true.

Supports true curves.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.0 - 200.7
.NET200.0 - 200.7
.NET Windows200.0 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework200.0 - 200.7
UWP200.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.