Search Results for

    Show / Hide Table of Contents

    Interface IDocumentStyle

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

    Identity and state for a reusable style in a presentation live behind IDocumentStyle. The contract exposes a StyleId string that names the style so it can be referenced and shared, and a Status of type ElementStatus that tracks the style's state as a document is edited. Coding against the contract lets styling logic look up or tag a style without knowing which concrete style type it is.

    The implementor in IronPPT is the abstract DocumentStyle base, which the concrete style types in the model derive from to gain a shared identifier and status. A developer typically reads StyleId to match a style to an element or sets it when registering a custom style, while Status is maintained as the style participates in the document. Because the contract is deliberately small, it focuses on the two facts every style needs: what it is called and where it stands.

    string id = style.StyleId;
    ElementStatus state = style.Status;

    The paragraph style example builds and applies styles, and the add text how-to covers formatting that styles drive.

    Properties

    Status

    Declaration
    ElementStatus Status { get; set; }
    Property Value
    Type Description
    ElementStatus

    StyleId

    Declaration
    string StyleId { get; set; }
    Property Value
    Type Description
    System.String
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet