I am trying to create inner cells in pdf with using aspose words. But I have issues about its style. I need to center and fit my text in cell. But when I set center property for cell it gives some padding automatically.
I made a sample with MS word as below image:
This one is that I have created programmatically with using aspose.words.
As you can see it doesn’t fit when I set center property true for columns. My inner cell import code is below:
Cell cell = table.Rows[j].Cells[i];
cell.CellFormat.RightPadding = 0;
foreach (Paragraph pf in cell.Paragraphs)
{
pf.ParagraphFormat.LeftIndent = 0;
}
cell.CellFormat.WrapText = false;
builder.MoveTo(cell.FirstParagraph);
builder.InsertCell();
builder.Writeln(tr.Rows[j][i].Value);
builder.EndTable();
Which property should I set to fit it in cell, thanks.