<?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: How to set background color in TOC? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110324#M2894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: vini1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i never used that, but maybe IMapControl4.backcolor could be the solution. But i'm not sure!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 15:56:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-08-09T15:56:47Z</dc:date>
    <item>
      <title>How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110323#M2893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Mathias Westin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to set the background color of the TocControl? The reason we want to do this is so that white symbols and lines will get visible in the TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 13:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110323#M2893</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-09T13:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110324#M2894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: vini1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i never used that, but maybe IMapControl4.backcolor could be the solution. But i'm not sure!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 15:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110324#M2894</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-09T15:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110325#M2895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Mathias Westin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vincent!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IMapControl4.BackColor is only changing the background color of the MapControl it doesen't have any effect on the TOCControl. The MapControl is connected to the TOCControl as a buddy so it should be aware of changes in the MapControl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((IMapControl4)axMapControl1.Object).BackColor = 255;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried to set the BackColor on the AxMapControl but it also only effects the MapControl..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;axMapControl1.BackColor = Color.Red;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 07:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110325#M2895</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-10T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110326#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Mathias Westin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update: We could not find a way to change the color of the TOC. So we change the background of the swatch instead. We did that by looping through layers casting to ILagendInfo and updating the bitmap in the IPictureMarkerSymbol, converting all pixels with background color to gray making the white symbols to show up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 05:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110326#M2896</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-20T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110327#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You need to play with only TOCControl not for others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Please check below url &lt;/SPAN&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl2_Appearance.htm"&gt;http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl2_Appearance.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl2.htm"&gt;http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl2.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl_Appearance.htm"&gt;http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriControls/ITOCControl_Appearance.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Venkat Tammineni&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 10:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110327#M2897</guid>
      <dc:creator>Venkata_RaoTammineni</dc:creator>
      <dc:date>2010-08-20T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110328#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Mathias Westin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've tried almost everything you can do with the TOCControl and there is no way to change the background color. The only thing we haven't done is try to work with win32 API, that might be a possible way to do it... But the workaround that we done with the swatches is ok for now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 10:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110328#M2898</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-08-20T10:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set background color in TOC?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110329#M2899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid this is a known limit of TOCControl logged as &lt;SPAN style="color: #000000; font-family: verdana, arial, helvetica; font-size: 14.079px;"&gt;NIM011743&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 17:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-set-background-color-in-toc/m-p/110329#M2899</guid>
      <dc:creator>YuanLiu</dc:creator>
      <dc:date>2015-09-28T17:27:54Z</dc:date>
    </item>
  </channel>
</rss>

