This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometry Interface > IGeometry.SpatialReference Property (ArcObjects .NET 10.5 SDK) |
The spatial reference associated with this geometry.
[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
spatialRef is a parameter of type ISpatialReference
Returns and sets the Spatial Reference in which the geometry exists. If the spatial reference has not been set the property will return an empty ISpatialReference instance.