Search Results for

    Show / Hide Table of Contents

    Class ParagraphBorders

    Inheritance
    System.Object
    ParagraphBorders
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class ParagraphBorders : Object

    When a slide paragraph needs ruled lines around or between its text, ParagraphBorders defines them. It groups the individual border edges of a paragraph into one object, so a box around a callout or a divider line under a heading is configured in a single place. Each edge is set independently, which lets a developer draw only the lines a layout calls for rather than a full frame every time.

    A ParagraphBorders is created with its parameterless constructor and its edge properties are assigned the BorderStyle values that describe each line's appearance. Setting only the edges that should appear leaves the rest absent, so a single bottom rule or a left bar is as easy to express as a complete border. Because each edge is configured separately, a layout that wants a heavy underline but light side rules sets a different BorderStyle on each property rather than sharing one across all four sides.

    The six properties name the edges directly. TopBorder, BottomBorder, LeftBorder, and RightBorder are the four sides of the paragraph box, each taking a BorderStyle. BarBorder draws a vertical bar beside the paragraph, the change-bar style used to flag revised text, and BetweenBorder draws a line between consecutive paragraphs that share the same border settings, which separates stacked items without boxing each one. Every edge uses the same BorderStyle shape, so width, color, and line pattern are described consistently across all six.

    using IronPPT.Models;
    
    var borders = new ParagraphBorders();
    borders.BottomBorder = new BorderStyle();

    The paragraph style example formats a paragraph, the add paragraph example builds the paragraphs borders apply to, and the add text how-to covers slide text.

    Constructors

    ParagraphBorders()

    Declaration
    public ParagraphBorders()

    Properties

    BarBorder

    Declaration
    public BorderStyle BarBorder { get; set; }
    Property Value
    Type Description
    BorderStyle

    BetweenBorder

    Declaration
    public BorderStyle BetweenBorder { get; set; }
    Property Value
    Type Description
    BorderStyle

    BottomBorder

    Declaration
    public BorderStyle BottomBorder { get; set; }
    Property Value
    Type Description
    BorderStyle

    LeftBorder

    Declaration
    public BorderStyle LeftBorder { get; set; }
    Property Value
    Type Description
    BorderStyle

    RightBorder

    Declaration
    public BorderStyle RightBorder { get; set; }
    Property Value
    Type Description
    BorderStyle

    TopBorder

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