ArcObjects Library Reference (Geometry)  

IGeometry.SpatialReference Property

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

Product Availability

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

Description

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.

See Also

IGeometry Interface