ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping.Controls Namespace / CoordinateSystemsControlProperties Class / SpatialReference Property

In This Topic
    SpatialReference Property (CoordinateSystemsControlProperties)
    In This Topic
    Gets and sets the spatial reference to be used to select the SpatialReference in the CoordinateSystemsControl.
    Syntax
    public SpatialReference SpatialReference {get; set;}
    Public Property SpatialReference As SpatialReference
    Remarks
    SpatialReference is optional. The default is null. If the SpatialReference is set it will be selected in the CoordinateSystemsControl.

    Note: only one of: o SpatialReference
    o Wkid
    o Wkt

    need be set.

    If the SpatialReference is set, Wkid and Wkt are ignored. If the SpatialReference is null, then Wkid is used. If the Wkid is 0 (or less), then the Wkt is used.

    If no SpatialReference is set then the first SpatialReference of the first layer in the provided map is selected. If no map is provided then no SpatialReference is selected.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also