Search Results for

    Show / Hide Table of Contents

    Interface IParagraphIndention

    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface IParagraphIndention

    Margin offsets for a paragraph, the left and right insets plus the special first-line and hanging measurements, are set through IParagraphIndention. Reach for it when a bulleted list needs its text pulled in from the bullet, when a quotation needs to sit further from the slide edge, or when the opening line of a paragraph should start at a different position than the rest. Every measurement is an IDocUnit, so the values carry their own unit rather than a bare number, which is the disambiguation the FAQ also resolves against the simpler character-count members.

    The contract is reached through a paragraph's style rather than created on its own. The concrete implementor in IronPPT is ParagraphIndention, and the indention object is read and written as part of the paragraph styling you apply when laying out text. Coding against the interface keeps the layout logic independent of how the paragraph acquired its indention.

    The twelve properties group into a few jobs. The edge insets are Left and Right, the distance the whole paragraph sits from each margin. The first-line controls are FirstLine (extra indent on the opening line only) and Hanging (the opposite, where every line after the first is indented). Each of those has a character-counted twin for fixed-width contexts: LeftChars, RightChars, FirstLineChars, and HangingChars. Finally Start, End, StartCharacters, and EndCharacters express the same offsets in logical writing-direction terms, which matters for right-to-left layouts where start and end are not left and right.

    IParagraphIndention indention = new ParagraphIndention();
    indention.Left = new DocUnit { Point = 36 };
    indention.Hanging = new DocUnit { Point = 18 };

    The paragraph style example shows indentation alongside spacing, the customized bullet point example pairs hanging indents with bullets, and the add text how-to covers placing the text those indents apply to.

    Properties

    End

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

    EndCharacters

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

    FirstLine

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

    FirstLineChars

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

    Hanging

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

    HangingChars

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

    Left

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

    LeftChars

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

    Right

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

    RightChars

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

    Start

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

    StartCharacters

    Declaration
    IDocUnit StartCharacters { get; set; }
    Property Value
    Type Description
    IDocUnit
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet