How to align the contents of the cell within the cell

I want to right align the contents of a table cell. Could you provide some advise?

Hi,

Consider the Paragraph.ParagraphFormat.Alignment property:

Table table = doc.FirstSection.Body.Tables[0];

table.FirstRow.FirstCell.FirstParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Right;

Thanks.