We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Table sizes and alignment

I''m creating a table in flow model and I need to know how to restrict the horizontal size of the table. Right now my table spans the entire width of the page. I''d like to align the table in the center of the page and restrict the horizontal size - arbitrary size or fixed. Thanks, Bill

1 Reply

AJ Ajish Syncfusion Team July 14, 2006 11:18 PM UTC

Hi Bill, You can adjust the width of the table using the following code table.Width =200; and you can center align the table in the page by aligning the paragraph in which the table is drawn. Here is a code for aligning the paragraph. paragraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; and here is a sample for your reference: InsertTable.zip Please take a look and let me know if you have any questions. Thanks, Ajish.

Loader.
Live Chat Icon For mobile
Up arrow icon