Setting PowerPoint Paragraph Indent and Special Hanging Indent in C#

Hi,

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

@anmaraso,
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