<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set Numeric Format for Class Breaks Labels? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-numeric-format-for-class-breaks-labels/m-p/740204#M19657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
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 =
&amp;nbsp;&amp;nbsp;&amp;nbsp; classBreaksRenderer as IClassBreaksUIProperties;
classBreaksUIProperties.NumberFormat = numericFormat as INumberFormat;
classBreaksRenderer = classBreaksUIProperties as IClassBreaksRenderer;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The individual settings have no bearing on this question.&amp;nbsp; No matter what I change them to when I do a get_Label() after the set_Break() the number formats are unaffected.&amp;nbsp; Is there any way to change this other than manually teasing apart the resulting label?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 19:12:06 GMT</pubDate>
    <dc:creator>GeorgeFaraj</dc:creator>
    <dc:date>2011-12-02T19:12:06Z</dc:date>
    <item>
      <title>Set Numeric Format for Class Breaks Labels?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-numeric-format-for-class-breaks-labels/m-p/740204#M19657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
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 =
&amp;nbsp;&amp;nbsp;&amp;nbsp; classBreaksRenderer as IClassBreaksUIProperties;
classBreaksUIProperties.NumberFormat = numericFormat as INumberFormat;
classBreaksRenderer = classBreaksUIProperties as IClassBreaksRenderer;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The individual settings have no bearing on this question.&amp;nbsp; No matter what I change them to when I do a get_Label() after the set_Break() the number formats are unaffected.&amp;nbsp; Is there any way to change this other than manually teasing apart the resulting label?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 19:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-numeric-format-for-class-breaks-labels/m-p/740204#M19657</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2011-12-02T19:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Numeric Format for Class Breaks Labels?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/set-numeric-format-for-class-breaks-labels/m-p/740205#M19658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to change the number format of a numeric renderer? Or is this just not possible in ArcGIS 10?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 14:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/set-numeric-format-for-class-breaks-labels/m-p/740205#M19658</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2011-12-13T14:44:17Z</dc:date>
    </item>
  </channel>
</rss>

