<?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: TextElement with a solid background color in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228945#M5969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With a TextElement, the only way I know to set the background color is to set the background to a balloon callout. But this has some likely unwanted callout features.&lt;BR /&gt;&lt;BR /&gt;Probably best to use ParagraphTextElement, which gives you control over background, outline, etc.&lt;BR /&gt;&lt;BR /&gt;There is a sample of how to use it in the thread: &lt;A href="http://forums.arcgis.com/threads/27572-Paragrapgh-text-in-Pagelayout?p=98181"&gt;Paragraph text in Pagelayout&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get around the balloon callout problems by setting the leader tolerance to the maximum, 32767.&amp;nbsp; A bit of a hack but it works.&amp;nbsp; Marker text background can work also depending on the needs and the properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution is to create a group element with a text element and a polygon or rectangle element grouped together.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2011 17:35:06 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2011-07-12T17:35:06Z</dc:date>
    <item>
      <title>TextElement with a solid background color</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228943#M5967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I create a TextElement with a solid background color?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 16:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228943#M5967</guid>
      <dc:creator>JimCampbell</dc:creator>
      <dc:date>2011-07-11T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: TextElement with a solid background color</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228944#M5968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With a TextElement, the only way I know to set the background color is to set the background to a balloon callout. But this has some likely unwanted callout features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably best to use ParagraphTextElement, which gives you control over background, outline, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample of how to use it in the thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/27572-Paragrapgh-text-in-Pagelayout?p=98181"&gt;Paragraph text in Pagelayout&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 16:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228944#M5968</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2011-07-12T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: TextElement with a solid background color</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228945#M5969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With a TextElement, the only way I know to set the background color is to set the background to a balloon callout. But this has some likely unwanted callout features.&lt;BR /&gt;&lt;BR /&gt;Probably best to use ParagraphTextElement, which gives you control over background, outline, etc.&lt;BR /&gt;&lt;BR /&gt;There is a sample of how to use it in the thread: &lt;A href="http://forums.arcgis.com/threads/27572-Paragrapgh-text-in-Pagelayout?p=98181"&gt;Paragraph text in Pagelayout&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get around the balloon callout problems by setting the leader tolerance to the maximum, 32767.&amp;nbsp; A bit of a hack but it works.&amp;nbsp; Marker text background can work also depending on the needs and the properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another solution is to create a group element with a text element and a polygon or rectangle element grouped together.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 17:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228945#M5969</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-07-12T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: TextElement with a solid background color</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228946#M5970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ParagraphTextElement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i. This works but it is much easier to use a rectangle as the background.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii. This as the same issues as a rectangle element&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Use a group and rectangle element.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is what I tried first.&amp;nbsp; It works but it has issues&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issues with the rectangle and paragraph elements: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - It causes bad refresh behavior on all my annotations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See this post for more info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/34481-RectangleElement-causes-annotation-graphics-to-refresh-on-all-lower-layer-changes?p=116191#post116191"&gt;http://forums.arcgis.com/threads/34481-RectangleElement-causes-annotation-graphics-to-refresh-on-all-lower-layer-changes?p=116191#post116191&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Marker Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i. Works for the simple markers and bitmaps.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii.&amp;nbsp; I cannot find a way to make a simple colored bitmap that fits my text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Callout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i. I have not tried this one yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii. Is it possible to control the margins around the callout?&amp;nbsp; This is my only known issue with the callout at this time.&amp;nbsp; The margins are too big.&amp;nbsp; It takes up too much screen space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 14:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228946#M5970</guid>
      <dc:creator>JimCampbell</dc:creator>
      <dc:date>2011-07-13T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: TextElement with a solid background color</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228947#M5971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;callout margins can be set in the ArcMap GUI for the background properties so it should be doable in code.&amp;nbsp; ITextMargins has a getMargins and putMargins.&amp;nbsp; I have never used it but my bet would be to start there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 12:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/textelement-with-a-solid-background-color/m-p/228947#M5971</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-07-14T12:10:37Z</dc:date>
    </item>
  </channel>
</rss>

