7

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.

2

Cast the mxdocument as IReportUnitFormat2 and try NumericFormat.

2

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

1

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

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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