Search Results for

    Show / Hide Table of Contents

    Class ParagraphIndention

    Inheritance
    System.Object
    ParagraphIndention
    Implements
    IParagraphIndention
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class ParagraphIndention : Object, IParagraphIndention

    Indentation for a slide paragraph, the left and right insets, the first-line offset, and the hanging indent, lives on ParagraphIndention. It gathers every indent measurement a paragraph can carry into one object, so margins and first-line behavior are configured together instead of as loose values. A developer reaches for it when a bulleted list, a quotation block, or an outline needs precise horizontal spacing.

    A ParagraphIndention is created with its parameterless constructor and its properties are set as indentation values, then it is applied through the paragraph's style. Each property is an IDocUnit, a measurement that can be read or written in document units, which keeps the indents expressed the same way as the rest of a paragraph's spacing.

    The properties fall into three functional groups. The **edge indents** set the side margins of the whole paragraph: Left and Right push the block in from each side, while Start and End are their writing-direction-aware equivalents that follow left-to-right or right-to-left text. The **first-line indents** control the opening line independently: FirstLine offsets it forward, and Hanging pulls it back to produce the hanging indent a bulleted or numbered list uses. The **character-count variants** mirror each of those in character units rather than absolute measurements, LeftChars, RightChars, StartCharacters, EndCharacters, FirstLineChars, and HangingChars, for layouts that prefer to indent by a number of characters.

    using IronPPT.Models;
    
    var indention = new ParagraphIndention();
    indention.Left = 15;
    indention.Hanging = 5;

    The paragraph style example sets spacing and indentation on a paragraph, the customized bullet point example builds a list whose items use hanging indents, and the add text how-to covers slide text.

    Constructors

    ParagraphIndention()

    Declaration
    public ParagraphIndention()

    Properties

    End

    Declaration
    public IDocUnit End { get; set; }
    Property Value
    Type Description
    IDocUnit

    EndCharacters

    Declaration
    public IDocUnit EndCharacters { get; set; }
    Property Value
    Type Description
    IDocUnit

    FirstLine

    Declaration
    public IDocUnit FirstLine { get; set; }
    Property Value
    Type Description
    IDocUnit

    FirstLineChars

    Declaration
    public IDocUnit FirstLineChars { get; set; }
    Property Value
    Type Description
    IDocUnit

    Hanging

    Declaration
    public IDocUnit Hanging { get; set; }
    Property Value
    Type Description
    IDocUnit

    HangingChars

    Declaration
    public IDocUnit HangingChars { get; set; }
    Property Value
    Type Description
    IDocUnit

    Left

    Declaration
    public IDocUnit Left { get; set; }
    Property Value
    Type Description
    IDocUnit

    LeftChars

    Declaration
    public IDocUnit LeftChars { get; set; }
    Property Value
    Type Description
    IDocUnit

    Right

    Declaration
    public IDocUnit Right { get; set; }
    Property Value
    Type Description
    IDocUnit

    RightChars

    Declaration
    public IDocUnit RightChars { get; set; }
    Property Value
    Type Description
    IDocUnit

    Start

    Declaration
    public IDocUnit Start { get; set; }
    Property Value
    Type Description
    IDocUnit

    StartCharacters

    Declaration
    public IDocUnit StartCharacters { get; set; }
    Property Value
    Type Description
    IDocUnit

    Implements

    IParagraphIndention
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet