Hi,
Hi,
Thanks for your inquiry. In this case, you can specify left indentation at Paragraph level. For example, please see the following code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.StartTable();
builder.InsertCell();
CellFormat cellFormat = builder.CellFormat;
cellFormat.Width = 250;
cellFormat.LeftPadding = 30;
cellFormat.RightPadding = 30;
cellFormat.TopPadding = 30;
cellFormat.BottomPadding = 30;
ParagraphFormat paragraphFormat = builder.ParagraphFormat;
paragraphFormat.LeftIndent = 36;
builder.Writeln("I'm a wonderful formatted cell.");
builder.EndRow();
builder.EndTable();
doc.Save(@“C:\Temp\out.docx”);
I hope, this helps.
Best regards,
Thank you for your response.
Hi Meng,
Thanks for your posting and using Aspose APIs.
You can only find the indent level of the cell’s text using Style.IndentLevel property with Aspose.Cells. However, you cannot find actual indent level in points.
I have calculated the indent level in point using MS-Excel by first indenting the text and then autofitting the column width. I got different readings. 1 Indent Level takes some where between 1.28 - 1.43 points.
I have attached the screenshot showing the readings of indent level in points for your reference.
Screenshot: