Set Numeric Format for Class Breaks Labels?

579
1
12-02-2011 11:12 AM
GeorgeFaraj
Occasional Contributor III
Why doesn't this code change the numeric format of the labels generated when I build this renderer? When I execute the set_Break() this numeric format is correctly set in the renderer but I still get numbers that look like "110.400000" in the generated label.

INumericFormat numericFormat = new NumericFormatClass();
numericFormat.AlignmentOption = esriNumericAlignmentEnum.esriAlignLeft;
numericFormat.AlignmentWidth = 0;
numericFormat.RoundingOption = esriRoundingOptionEnum.esriRoundNumberOfDecimals;
numericFormat.RoundingValue = 2;
numericFormat.ShowPlusSign = true;
numericFormat.UseSeparator = true;
IClassBreaksUIProperties classBreaksUIProperties =
    classBreaksRenderer as IClassBreaksUIProperties;
classBreaksUIProperties.NumberFormat = numericFormat as INumberFormat;
classBreaksRenderer = classBreaksUIProperties as IClassBreaksRenderer;


The individual settings have no bearing on this question.  No matter what I change them to when I do a get_Label() after the set_Break() the number formats are unaffected.  Is there any way to change this other than manually teasing apart the resulting label?
0 Kudos
1 Reply
GeorgeFaraj
Occasional Contributor III
Does anyone know how to change the number format of a numeric renderer? Or is this just not possible in ArcGIS 10?
0 Kudos