Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm looking for a property (or properties) that will give me the display units and the formatting. enter image description here

I assume I need IMap.DistanceUnits but I can't find the formatting. Is this exposed?

I am also interested in accessing the additional formatting in this window: enter image description here

I'm hoping there's a INumberFormat property someplace that I can hook into.

share|improve this question
add comment

4 Answers

up vote 2 down vote accepted

Cast the mxdocument as IReportUnitFormat2 and try NumericFormat.

share|improve this answer
add comment

I haven't tried this yet, but the following property page can have a solution:
IPropertyPage Interface along-with the MapFramePropertyPage CoClass

share|improve this answer
add comment

Not sure about the formatting, but the friendly names are accessible through the IUnitConverter.EsriUnitsAsString method.

share|improve this answer
add comment

I am not sure, but are you searching for this? You can get these map units through IMap.MapUnits Property.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.