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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Table sizes and alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

46546 Jul 14,2006 03:54 PM UTC Jul 14,2006 11:18 PM UTC Windows Forms 1
loading
Tags: PDF
Administrator [Syncfusion]
Asked On July 14, 2006 03:54 PM UTC

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

Ajish [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;