ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / MapPointBuilderEx Class / CreateMapPoint Method / CreateMapPoint(Double,Double,Double,SpatialReference) Method
X coordinate.
Y coordinate.
Z coordinate. HasZ is set to true.
(Optional) The SpatialReference. The default value is null.

CreateMapPoint(Double,Double,Double,SpatialReference) Method
Convenience method to create a MapPoint instance with the given X, Y, and Z coordinates. The HasZ property on this instance is set to true.
Syntax
public static MapPoint CreateMapPoint( 
   double x,
   double y,
   double z,
   SpatialReference spatialReference
)

Parameters

x
X coordinate.
y
Y coordinate.
z
Z coordinate. HasZ is set to true.
spatialReference
(Optional) The SpatialReference. The default value is null.

Return Value

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.8 or higher.
See Also