This document is archived and information here might be outdated.  Recommended version.


IMapDescription2.SpatialReference Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapDescription2.SpatialReference Property

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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IMapDescription2 Interface