cancel
Showing results for 
Search instead for 
Did you mean: 

How to align a String value to the right side inside a table column?

Former Member
0 Kudos

Hi,

I have a text view inside a table column which is mapped to a string attribute. I need to align the text in the text view to the right hand inside the table column. But its always getting aligned towards the left side. I have tried by setting the <b>hAlign</b> property of Element properties of Text View to <b>right / forced right</b> but still the text is getting aligned to the left side.

How do I align the String values in Text View towards the right hand side inside a Table Column?

Thanks and Regards,

Sayan Ghosh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Set TableColumn.hAlign = WDTableColumnHAlign.END_OF_LIGN.

Armin

Former Member
0 Kudos

Hello Sayan,

if i do get it right, you are adding an TextView element to a Table Cell. Then you should consider setting aligment within the particular cell. By calling:


YourCell.setHorizontalAlignment(CellHAlign.RIGHT)

regards.

mz