ArcGIS Pro 2.7 API Reference Guide
CreateGridUnit(Int32) Method

ArcGIS.Core.Geometry Namespace > GridUnit Class > CreateGridUnit Method : CreateGridUnit(Int32) Method
The grid unit factory code.
Convenience method to quickly create a GridUnit instance using a factory code.
Syntax
public static GridUnit CreateGridUnit( 
   int factoryCode
)
Public Overloads Shared Function CreateGridUnit( _
   ByVal factoryCode As Integer _
) As GridUnit

Parameters

factoryCode
The grid unit factory code.

Return Value

Remarks

The available grid units.

Factory Code Unit Name
909000 MGRS (Military Grid Reference System)
909001 USNG (United States National Grid)
909002 UTM (Universal Transverse Mercator)

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GridUnit Class
GridUnit Members
Overload List