PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

MigraDoc - Shading an empty cell completely ?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1022
Page 1 of 1

Author:  kimonif [ Wed Jan 13, 2010 7:56 pm ]
Post subject:  MigraDoc - Shading an empty cell completely ?

Is there any way to fill completely the background of an individual empty cell with a color? The Shading property colors a strip inside the empty cell - there is space above and below which is unaffected.

Please note that I do not use padding.

Author:  mikesowerbutts [ Fri Jan 15, 2010 3:20 pm ]
Post subject:  Re: MigraDoc - Shading an empty cell completely ?

i havnt come accross this problem before, but i would try setting the border color of the cell to the background fill color? or check if there is any cell padding set. i doubt that would affect it, but its worth a look.

mike

Author:  Thomas Hoevel [ Mon Jan 18, 2010 10:46 am ]
Post subject:  Re: MigraDoc - Shading an empty cell completely ?

Hi!

Here's a code fragment from our application:
Code:
cell.Elements.Clear();
cell.Shading = cellformat.Shading.Clone();


"cellFormat" is created like this:
Code:
Cell greyCell = new Cell();
greyCell.Shading.Color = colorScheme.TableGrayedColor;

"colorScheme" is part of our application; use the desired color instead.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/