This is a migrated thread and some comments may be shown as answers.

Centering a table

1 Answer 54 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 15 Nov 2011, 09:29 PM
How can I center a table in a RadDocument?

I am creating the RadDocument in code.  I don't want to center the content in the cells, I just wan to center the entire table in the document. (horizontally)
RadDocument doc = new RadDocument();
Section section = new Section();
Table table = new Table();
//add rows and cells
section.Blocks.Add(table);
document.Sections.Add(Section);

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 21 Nov 2011, 05:11 PM
Hello Justin Lee,
For now, alignment of tables is not supported. It is, however, in our to-do list and probably would be implemented in some of the next releases. You could vote for and follow the issue in PITS here.
For now, your only option is to set Table.TableIndent property depending on the page size.

Don't hesitate to contact us if you have other questions.


Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or