<?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: table cell background fill color issue in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5599567#M40430</link>
    <description>&lt;P&gt;Hi CJ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried looking at the "ColorMethod" from BackgroundColor&amp;nbsp;that you have retrieved ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its not storing the color index, then ColorIndex may not give you the value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be storing as R, G, B values for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2015 11:39:53 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2015-04-20T11:39:53Z</dc:date>
    <item>
      <title>table cell background fill color issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5597284#M40429</link>
      <description>&lt;P&gt;Hoping somebody can help me out. I have a table in AutoCAD that has been created thru cutting and pasting as ACAD objects from excel.&lt;/P&gt;&lt;P&gt;My end goal is to strip all the formatting but retain the background fill color.&lt;/P&gt;&lt;P&gt;I know there is a fill color because of the "\\c0" in the contents of the cell, but that doesn't tell me what color it is&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;I am using the StripTableFormatting() code from Through-the-interface as a base point because it does what I want, but I just want to capture the color on the cell and then restore it after everything has been stripped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The contents of the cell is&amp;nbsp;"{\\fArial|b1|i0|c0;\\c0;2.0000"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what I have tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var cell = tab.Cells[r, c];&lt;/P&gt;&lt;P&gt;coloridx = cell.BackgroundColor.ColorIndex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this does not give me the color and I don't know how to retrieve&amp;nbsp;it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 15:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5597284#M40429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-17T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: table cell background fill color issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5599567#M40430</link>
      <description>&lt;P&gt;Hi CJ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried looking at the "ColorMethod" from BackgroundColor&amp;nbsp;that you have retrieved ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its not storing the color index, then ColorIndex may not give you the value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be storing as R, G, B values for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 11:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5599567#M40430</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-04-20T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: table cell background fill color issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5599837#M40431</link>
      <description>&lt;P&gt;Thanks for responding Balayi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I have tried.......ColorMethod = None, R,G,B are all 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the drawing file for you to take a look at. It was created by cutting and Pasting as AutoCAD objects from Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for any further assistance you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Coralie&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5599837#M40431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: table cell background fill color issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5600979#M40432</link>
      <description>&lt;P&gt;Hi CJ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please check the&amp;nbsp;BackgroundColor.ColorValue ?&lt;/P&gt;
&lt;P&gt;That seems to be holding the R,G,B values in the sample drawing that you shared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5600979#M40432</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-04-21T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: table cell background fill color issue</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5605593#M40433</link>
      <description>&lt;P&gt;Thanks for the help Balaji,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally got it figured out. I had an error in my logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cj&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 17:30:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-cell-background-fill-color-issue/m-p/5605593#M40433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-23T17:30:11Z</dc:date>
    </item>
  </channel>
</rss>

