I'm creating a map layout with a measured grid using visual studio and ArcGIS Engine 10.4. I was able to change all the properties for the grid label (color, font and font size), except for the part after the decimal point. In other words, the changes I apply on the label using the code below are only applied on the part before the decimal point.
What I want to do is to hide the decimal part of the label. Anyone know how to access the decimal part and hide it or set the number of digits after the decimal to zero as in ArcMap for desktop?
IGridLabel gridLabel = pMapGrid.LabelFormat; gridLabel.LabelOffset = 6; gridLabel.Color = color; gridLabel.LabelAlignment[esriGridAxisEnum.esriGridAxisRight] = false; gridLabel.LabelAlignment[esriGridAxisEnum.esriGridAxisLeft] = false;