This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescription2 Interface > IMapDescription2.SpatialReference Property (ArcObjects .NET 10.5 SDK) |
The spatial reference of the map (data frame).
[Visual Basic .NET] Public Property SpatialReference As ISpatialReference
[C#] public ISpatialReference SpatialReference {get; set;}
[C++]
HRESULT get_SpatialReference(
ISpatialReference** SpatialReference
);
[C++]
HRESULT putref_SpatialReference(
ISpatialReference* SpatialReference
);
[C++]
Parameters SpatialReference [out, retval]
SpatialReference is a parameter of type ISpatialReference SpatialReference [in]
SpatialReference is a parameter of type ISpatialReference
Use SpatialReference to retrieve or set a spatial reference for a map. If the spatial reference for a map has been changed, remember to assign the new spatial reference to any subsequent geometry used to change the map area or identify or select features.