Interface ILatLonFormat2
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members that format Latitudes and Longitudes.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("127B0952-E8B4-428C-AC39-58DE4D1F17DE")]
public interface ILatLonFormat2
Properties
IsLatitude
Indicates if a formatted number is a latitude or not.
bool IsLatitude { get; set; }
Property Value
Remarks
When used with the IDMSGridLabel interface, it sets an indicator to specify that latitude labels will be placed on top of the data frame border, and longitude labels will be placed to the left of the data frame border. If True, the directional letter will be either N or S; with IDMSGridLabel, latitude labels are placed below the data frame border and longitude labels are placed to the right.
ShowDirections
Indicates if a directional letter (N-S-E-W) is appended to the formatted number.
bool ShowDirections { get; set; }
Property Value
Remarks
As an alternative, the ShowPlusSign property from INumericFormat can be used to show similar information since the LatLonFormat coclass also supports this interface.
ShowZeroMinutes
Indicates if zero minutes are included in formatted output.
bool ShowZeroMinutes { get; set; }
Property Value
ShowZeroSeconds
Indicates if zero seconds are included in formatted output.
bool ShowZeroSeconds { get; set; }
Property Value
Remarks
If ShowZeroSeconds is True, zero values in the minutes location are also shown regardless of the ShowZeroMinutes setting.
Methods
GetDMS(double, out int, out int, out double)
Obtains the degrees, minutes, and seconds for a lat/lon number.
void GetDMS(double Value, out int degrees, out int Minutes, out double Seconds)