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


IGraphicElement.SpatialReference Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGraphicElement Interface > IGraphicElement.SpatialReference Property
ArcGIS Developer Help

IGraphicElement.SpatialReference Property

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*

Product Availability

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

Remarks

SpatialReference is used to set (by reference) and retrieve the spatial reference of the graphic element. 

See Also

IGraphicElement Interface