Public Sub SetSpatialReference( _ ByVal spatialReference As SpatialReference _ )
public void SetSpatialReference( SpatialReference spatialReference )
Parameters
- spatialReference
- The spatial reference to set.
Public Sub SetSpatialReference( _ ByVal spatialReference As SpatialReference _ )
public void SetSpatialReference( SpatialReference spatialReference )
| Exception | Description |
|---|---|
| System.ArgumentNullException | The spatial reference is null. |
| ArcGIS.Core.CalledOnWrongThreadException | This method must be called on the MCT. Use QueuedTask.Run. |
| ArcGIS.Core.Data.Exceptions.TinException | The editor is not in edit mode. |
{
// Set the spatial reference
tinEditor.SetSpatialReference(SpatialReferenceBuilder.CreateSpatialReference(54004));
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)