ParagraphFormatLeftIndent Property

Gets or sets the value (in points) that represents the left indent for paragraph.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public double LeftIndent { get; set; }

Property Value

Type: Double
Examples
Shows how to set paragraph formatting.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Set paragraph formatting properties
ParagraphFormat paragraphFormat = builder.ParagraphFormat;
paragraphFormat.Alignment = ParagraphAlignment.Center;
paragraphFormat.LeftIndent = 50;
paragraphFormat.RightIndent = 50;
paragraphFormat.SpaceAfter = 25;

// Output text
builder.Writeln(
    "I'm a very nice formatted paragraph. I'm intended to demonstrate how the left and right indents affect word wrapping.");
builder.Writeln(
    "I'm another nice formatted paragraph. I'm intended to demonstrate how the space after paragraph looks like.");
See Also