PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 11, 2024 9:17 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 13, 2010 7:56 pm 
Offline

Joined: Wed Jan 13, 2010 7:48 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 15, 2010 3:20 pm 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 18, 2010 10:46 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 92 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group