<?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 FontSize is different then i Have set in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/fontsize-is-different-then-i-have-set/m-p/205099#M5360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lable FontSize is different &amp;nbsp;then I have set. I set FontSize to 10 but when I check in layer properties -&amp;gt; label -&amp;gt; fontsize is 9.75.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &amp;nbsp;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAnnotateLayerPropertiesCollection pAnnoLayerPropsColl = pGeoFeatureLayer.AnnotationProperties;&lt;BR /&gt; IElementCollection placedElements = new ElementCollectionClass();&lt;BR /&gt; IElementCollection unplacedElements = new ElementCollectionClass();&lt;BR /&gt; IAnnotateLayerProperties pAnnoLayerProps;&lt;BR /&gt; pAnnoLayerPropsColl.QueryItem(0, out pAnnoLayerProps, out placedElements, out unplacedElements); &lt;BR /&gt; pAnnoLayerProps.Class = "LabelSel"; &lt;BR /&gt; IAnnotationExpressionEngine aAnnoVBScriptEngine = new AnnotationVBScriptEngineClass();&lt;/P&gt;&lt;P&gt;ITextSymbol pTextSymbol = new TextSymbolClass();&lt;BR /&gt; stdole.IFontDisp pFont = pTextSymbol.Font;&lt;BR /&gt; pFont.Bold = true;&lt;BR /&gt; pFont.Size = 10.0m;&lt;BR /&gt; pFont.Name = "Arial";&lt;BR /&gt; pTextSymbol.Font = pFont;&lt;/P&gt;&lt;P&gt;ILabelEngineLayerProperties pLELayerProps = pAnnoLayerProps as ILabelEngineLayerProperties;&lt;BR /&gt; pLELayerProps.ExpressionParser = aAnnoVBScriptEngine; &lt;BR /&gt; pLELayerProps.Expression = "["+imagenameField+"]";&lt;BR /&gt; pLELayerProps.Symbol = pTextSymbol;&lt;/P&gt;&lt;P&gt;pGeoFeatureLayer.DisplayAnnotation = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find attached output ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help ....&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 17:06:58 GMT</pubDate>
    <dc:creator>RakeshModi</dc:creator>
    <dc:date>2017-01-10T17:06:58Z</dc:date>
    <item>
      <title>FontSize is different then i Have set</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/fontsize-is-different-then-i-have-set/m-p/205099#M5360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lable FontSize is different &amp;nbsp;then I have set. I set FontSize to 10 but when I check in layer properties -&amp;gt; label -&amp;gt; fontsize is 9.75.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is &amp;nbsp;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAnnotateLayerPropertiesCollection pAnnoLayerPropsColl = pGeoFeatureLayer.AnnotationProperties;&lt;BR /&gt; IElementCollection placedElements = new ElementCollectionClass();&lt;BR /&gt; IElementCollection unplacedElements = new ElementCollectionClass();&lt;BR /&gt; IAnnotateLayerProperties pAnnoLayerProps;&lt;BR /&gt; pAnnoLayerPropsColl.QueryItem(0, out pAnnoLayerProps, out placedElements, out unplacedElements); &lt;BR /&gt; pAnnoLayerProps.Class = "LabelSel"; &lt;BR /&gt; IAnnotationExpressionEngine aAnnoVBScriptEngine = new AnnotationVBScriptEngineClass();&lt;/P&gt;&lt;P&gt;ITextSymbol pTextSymbol = new TextSymbolClass();&lt;BR /&gt; stdole.IFontDisp pFont = pTextSymbol.Font;&lt;BR /&gt; pFont.Bold = true;&lt;BR /&gt; pFont.Size = 10.0m;&lt;BR /&gt; pFont.Name = "Arial";&lt;BR /&gt; pTextSymbol.Font = pFont;&lt;/P&gt;&lt;P&gt;ILabelEngineLayerProperties pLELayerProps = pAnnoLayerProps as ILabelEngineLayerProperties;&lt;BR /&gt; pLELayerProps.ExpressionParser = aAnnoVBScriptEngine; &lt;BR /&gt; pLELayerProps.Expression = "["+imagenameField+"]";&lt;BR /&gt; pLELayerProps.Symbol = pTextSymbol;&lt;/P&gt;&lt;P&gt;pGeoFeatureLayer.DisplayAnnotation = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find attached output ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help ....&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/fontsize-is-different-then-i-have-set/m-p/205099#M5360</guid>
      <dc:creator>RakeshModi</dc:creator>
      <dc:date>2017-01-10T17:06:58Z</dc:date>
    </item>
  </channel>
</rss>

