This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGraphicElement Interface > IGraphicElement.SpatialReference Property (ArcObjects .NET 10.5 SDK) |
Spatial reference of the map.
[Visual Basic .NET] Public Property SpatialReference As ISpatialReference
[C#] public ISpatialReference SpatialReference {get; set;}
[C++]
HRESULT get_SpatialReference(
ISpatialReference** spatialRef
);
[C++]
HRESULT putref_SpatialReference(
ISpatialReference* spatialRef
);
[C++]
Parameters spatialRef [out, retval]
spatialRef is a parameter of type ISpatialReference spatialRef [in]
spatialRef is a parameter of type ISpatialReference
SpatialReference is used to set (by reference) and retrieve the spatial reference of the graphic element.