ESRI.ArcGIS.Mobile
ToMilitaryGrid Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.SpatialReferences Namespace > SpatialReference Class : ToMilitaryGrid Method

numOfDigits
Must be greater than 0 and less than 9.
rounding
Indicates if the digits should be simply truncated or rounded.
mode
coordinates
Converts a list of coordinates into military grid strings. Each string is 15 characters (2 numbers, 3 letters, 10 numbers OR 3 letters plus 10 numbers [polar region]). Default should be “5” for 2 #s, 3 letters and 10 numbers, and a total of 15).

Syntax

Visual Basic (Declaration) 
Public Function ToMilitaryGrid( _
   ByVal numOfDigits As Integer, _
   ByVal rounding As Boolean, _
   ByVal mode As MgrsConversionMode, _
   ByVal coordinates As IList(Of Coordinate) _
) As IList(Of String)
C# 
public IList<string> ToMilitaryGrid( 
   int numOfDigits,
   bool rounding,
   MgrsConversionMode mode,
   IList<Coordinate> coordinates
)

Parameters

numOfDigits
Must be greater than 0 and less than 9.
rounding
Indicates if the digits should be simply truncated or rounded.
mode
coordinates

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also