Joe.wang
Joe.wang

Reputation: 11793

How to center a table in MigraDoc?

Sorry for I am just beginner of PDFsharp. Currently I am learning the MigraDoc. Is there any example for center the Table in a section? Thanks.

Upvotes: 1

Views: 847

Answers (1)

With MigraDoc you can set the left indent of the table. Knowing the width of the page and the width of the table, it is simple to calculate the left indent to get a centered table.

Set table.Rows.LeftIndent as needed.

Upvotes: 3

Related Questions