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

In This Topic
    Wkid Property (CoordinateSystemsControlProperties)
    In This Topic
    Gets and sets the spatial reference wkid to be used to select the SpatialReference in the CoordinateSystemsControl.
    Syntax
    public int Wkid {get; set;}
    Public Property Wkid As Integer
    Remarks
    SpatialReference wkid is optional. The default is 0. If the SpatialReference wkid is set then the corresponding SpatialReference with that wkid 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