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

ArcGIS.Core.Geometry Namespace > MapPointBuilderEx Class > CreateMapPoint Method : CreateMapPoint(MapPoint,SpatialReference) Method
Specifies the coordinates for the MapPoint.
(Optional) The SpatialReference. The default value is null. If null, the spatial reference of the point is used.
Convenience method to quickly create a MapPoint instance.
Syntax
public static MapPoint CreateMapPoint( 
   MapPoint point,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreateMapPoint( _
   ByVal point As MapPoint, _
   Optional ByVal spatialReference As SpatialReference _
) As MapPoint

Parameters

point
Specifies the coordinates for the MapPoint.
spatialReference
(Optional) The SpatialReference. The default value is null. If null, the spatial reference of the point is used.

Return Value

Exceptions
ExceptionDescription
point is null.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MapPointBuilderEx Class
MapPointBuilderEx Members
Overload List