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
close icon

DocIO set HorizontalAlignment to Right

Hi,

I tried to set the HorizontalAlignment Property to right of a table cell. But It seens always to be left. I have table with 3 column and I want HorizontalAlignment of the 3rd column should be right, because it contains numeric data.

regards
p.p. Mathias Max

2 Replies

SS Siva Subramanian Syncfusion Team March 1, 2013 01:45 PM UTC

Hi Mathias,

Thank you for your interest in Syncfusion Products.

Using Below code snippet you can change the paragraph alignment inside a table cell to right

table.Rows[0].Cells[2].Paragraphs[0].ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Right;

 

We have created a simple sample to illustrate your requirement. Kindly download the sample from the attachment and let us know if this meets your requirement.

Please let us know if you have any questions.

Regards,

Sivasubramanian.



GenerateWord_Web_30999a16.zip


MM Matthias Max March 1, 2013 02:33 PM UTC

Hi Sivasubramanian,

Thats it. Thank you for the sample code. 

regards
p.p. Mathias Max

Loader.
Live Chat Icon For mobile
Up arrow icon