ArcGIS Pro 2.9 API Reference Guide
CreateMapPoint(Double,Double,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > MapPointBuilderEx Class > CreateMapPoint Method : CreateMapPoint(Double,Double,SpatialReference) Method
X coordinate.
Y coordinate.
(Optional) The SpatialReference. The default value is null.
Convenience method to quickly create a MapPoint instance.
Syntax
public static MapPoint CreateMapPoint( 
   double x,
   double y,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreateMapPoint( _
   ByVal x As Double, _
   ByVal y As Double, _
   Optional ByVal spatialReference As SpatialReference _
) As MapPoint

Parameters

x
X coordinate.
y
Y coordinate.
spatialReference
(Optional) The SpatialReference. The default value is null.

Return Value

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MapPointBuilderEx Class
MapPointBuilderEx Members
Overload List