PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
custom table row color http://forum.pdfsharp.de/viewtopic.php?f=2&t=1532 |
Page 1 of 1 |
Author: | Erik T [ Mon Feb 07, 2011 8:32 pm ] |
Post subject: | custom table row color |
I am trying to specify an exact color for my table row. I tried using: Code: row.Shading.Color = Color.Parse("0xBBCCDD"); For some reason this will only shade the first color of the first cell. If I use Code: row.Shading.Color = Colors.Blue; then it shades the entire row, but I want to use particular colors. I've also tried the Color.Parse idea on individual cells, but it doesn't give me any color. I'm still learning this tool and have been modifying the tables section from the HelloMigraDoc sample. Any tips? |
Author: | Erik T [ Mon Feb 07, 2011 8:47 pm ] |
Post subject: | Re: custom table row color |
All is well now. After examining the colors source I figured out that just needed to place an "FF" before the color that I want: Code: row.Shading.Color = Color.Parse("0xFFBBCCDD");
|
Author: | Thomas Hoevel [ Tue Feb 08, 2011 2:14 pm ] |
Post subject: | Re: custom table row color |
You can use int values instead of the string: Code: new Color(76, 137, 187) And this should also work: Code: new Color(0xFFBBCCDD);
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |