ArcObjects Library Reference (System)  

ILatLonFormat2 Interface

Provides access to members that format Latitudes and Longitudes.

Product Availability

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

Description

The members in the ILatLonFormat2 interface define how the ValueToString method in the associated INumberFormat interface formats numbers.

The LatLonFormat coclass also inherits the INumericFormat interface, so both these interface's properties determine how numbers are formatted.

When To Use

Use the ILatLonFormat2 interface to format numbers that represent a latitude or longitude.

Members

Description
Method GetDMS Obtains the degrees, minutes, and seconds for a lat/lon number.
Read/write property IsLatitude Indicates if a formatted number is a latitude or not.
Read/write property ShowDirections Indicates if a directional letter (N-S-E-W) is appended to the formatted number.
Read/write property ShowZeroMinutes Indicates if zero minutes are included in formatted output.
Read/write property ShowZeroSeconds Indicates if zero seconds are included in formatted output.

CoClasses that implement ILatLonFormat2

CoClasses and Classes Description
LatLonFormat An object for formatting numbers in a lat/lon format.

See Also

IScientificNumberFormat Interface | PercentageFormat Class | INumberFormat Interface | INumericFormat Interface | FractionFormat Class | IPercentageFormat Interface | ILatLonFormat Interface | ILatLonFormat2 Interface | LatLonFormat Class | ICustomNumberFormat Interface | RateFormat Class | NumericFormat Class | ScientificFormat Class | IRateFormat Interface | AngleFormat Class | IFractionFormat Interface | CurrencyFormat Class | CustomNumberFormat Class | IAngleFormat Interface | IDMSGridLabel Interface | esriDMSGridLabelType Constants | IDMSGridLabel.LabelType Property | ILatLonFormat Interface | ILatLonFormat2 Interface