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

Replace contents of a table cell
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4720
Page 1 of 1

Author:  firelex [ Wed Nov 13, 2024 8:58 am ]
Post subject:  Replace contents of a table cell

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.

Author:  TH-Soft [ Mon Nov 18, 2024 8:47 am ]
Post subject:  Re: Replace contents of a table cell

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.

Author:  firelex [ Mon Nov 18, 2024 12:18 pm ]
Post subject:  Re: Replace contents of a table cell

Thank you, that worked!

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