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


ILayer2.SpatialReference Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

ILayer2.SpatialReference Property

Spatial reference for the layer.

[Visual Basic .NET]
Public WriteOnly Property SpatialReference
[C#]
public void SpatialReference {set;}
[C++]
HRESULT putref_SpatialReference(
  ISpatialReference* 
);
[C++]

Parameters [in]
is a parameter of type ISpatialReference

Product Availability

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

Remarks

This property is only used for map display, setting this property does not change the spatial reference of the layer's underlying data. The ArcGIS framework uses this property to pass the spatial reference from the map to the layer in order to support on-the-fly projection.

See Also

ILayer2 Interface