<?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 Re: Cannot Set Font Size to Below 13 (C# .NET) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76074#M2049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Plans to migrate old information to the new forum?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure of that, but I do know that the old forums is the first place I run searches!&amp;nbsp; Tons of info there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 14:25:53 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2011-10-12T14:25:53Z</dc:date>
    <item>
      <title>Cannot Set Font Size to Below 13 (C# .NET)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76072#M2047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I use the following script I cannot set the font size to below 13.&amp;nbsp; This works when I try font sizes 13 and above (converts 13 to 12.75). The data comes in as a string but this should not make a difference otherwise it would fail the conversion to Decimal.&amp;nbsp; The exception I get is the "value not within expected range".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Carto.IElement element = new ESRI.ArcGIS.Carto.TextElementClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Carto.ITextElement textElement = (ESRI.ArcGIS.Carto.ITextElement)element;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;textElement.Text = elementString;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stdole.IFontDisp font = (stdole.IFontDisp)new stdole.StdFontClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;font.Size = System.Convert.ToDecimal(textSize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Display.ITextSymbol symbol = textElement.Symbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;symbol.Font = font; //FAILS HERE if textSize &amp;gt; 12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;textElement.Symbol = symbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to be a bug as the lowest value in ArcMap is 5 but more importantly the default value is 12 which I cannot set either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also not sure why I must explicilty set "textElement.Symbol = symbol" as I assumed it was referencing it anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 05:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76072#M2047</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2011-10-12T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Set Font Size to Below 13 (C# .NET)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76073#M2048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome,&amp;nbsp; this had already been answered on the old forum but using the new search did not pull it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=1170&amp;amp;t=193441"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=1170&amp;amp;t=193441&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those of you who couldn't be bothered clicking you just have to set the Font to something.&amp;nbsp; for example: Font.Name = "Arial";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is still a bug as far as I am concerned because I don't want to change the font or have to account for this when I write the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plans to migrate old information to the new forum?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 06:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76073#M2048</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2011-10-12T06:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Set Font Size to Below 13 (C# .NET)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76074#M2049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Plans to migrate old information to the new forum?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure of that, but I do know that the old forums is the first place I run searches!&amp;nbsp; Tons of info there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 14:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/cannot-set-font-size-to-below-13-c-net/m-p/76074#M2049</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2011-10-12T14:25:53Z</dc:date>
    </item>
  </channel>
</rss>

