
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
My end goal is to strip all the formatting but retain the background fill color.
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
.
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.
The contents of the cell is "{\\fArial|b1|i0|c0;\\c0;2.0000"
this is what I have tried
var cell = tab.Cells[r, c];
coloridx = cell.BackgroundColor.ColorIndex;
but this does not give me the color and I don't know how to retrieve it?
Any help would be really appreciated.
cj
Solved! Go to Solution.