PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Dec 27, 2024 7:02 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 Nov 13, 2024 8:58 am 
Offline

Joined: Thu Aug 15, 2024 8:44 am
Posts: 5
Hello all,

I'm creating a new PDF document with a table.
I fill table cells with text via AddParagraph. Sometimes I have to replace contents of one or more cells.
If I use AddParagraph again - I get a cell with two paragraphs (understandably).

How can I replace the contents of a cell?

I'm using PdfSharp-MigraDoc package version 6.1.1.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 18, 2024 8:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 1021
Location: CCAA
firelex wrote:
How can I replace the contents of a cell?
The cell should have an "Elements" member and you can use the Remove and Insert methods of this member.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 18, 2024 12:18 pm 
Offline

Joined: Thu Aug 15, 2024 8:44 am
Posts: 5
Thank you, that worked!


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: Google [Bot] and 18 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