Hi,
I have a query about the CellSpacing property of the Table object. In the documentation the property is described as “the amount of space (in points) between the cells”. In the example below I set it to 10, which should translate to 0.35 cm. However, in the output document the spacing between cells (in Table Options) is set to 0.71 cm.
Could you please explain this behaviour?
var doc = new Document();
var builder = new DocumentBuilder(doc);
var table = builder.StartTable();
var cell1 = new Aspose.Words.Tables.Cell(doc);
var cell2 = new Aspose.Words.Tables.Cell(doc);
var row = new Aspose.Words.Tables.Row(doc);
row.AppendChild(cell1);
row.AppendChild(cell2);
table.AppendChild(row);
table.CellSpacing = 10;
builder.EndTable();
builder.Document.Save(“D:/Output.docx”);
Thanks,
Michal
Outputs.zip (23.8 KB)