We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PowerPoint Paragraph Indent and Special Hanging Indent


Is there a way in Aspose.Slides to set “Before text” indentation?indent.PNG (6.7 KB)

Thank you for posting your question.

To manage paragraph indents, you should use options for ParagraphFormat properties. The following code snippets show you how to set different indent formatting for paragraphs:

// Before all text, pt
paragraph1.ParagraphFormat.MarginLeft = 20;

// First line only, pt
paragraph2.ParagraphFormat.Indent = 20;

// Hanging indent, pt
paragraph3.ParagraphFormat.MarginLeft = 20;
paragraph3.ParagraphFormat.Indent = -20;

Documents: Manage Paragraph
API Reference: IParagraphFormat interface