Search Results for

    Show / Hide Table of Contents

    Interface ITableStyle

    Styling for tables.

    Inherited Members
    IDerivedStyle.BaseStyle
    Namespace: IronWord.Models
    Assembly: IronWord.dll
    Syntax
    public interface ITableStyle : IDerivedStyle

    ITableStyle is the styling contract a table reads its appearance from when a document is built or edited in C#. It standardizes how borders and inherited styling are exposed, so code that formats a table can work against the contract rather than a single concrete style class. The contract surfaces Borders, the TableBorders drawn around and inside the table, and InheritedStyle, the ITableStyle a table falls back to when it does not override a value itself.

    The concrete implementor in IronWord is TableStyle, which most code instantiates and assigns directly; the interface matters when a routine accepts a style by contract or inspects the inherited chain. ITableStyle extends IDerivedStyle, which contributes the shared BaseStyle member, so a table style participates in the same derived-style model as the other style contracts. Set Borders to control the lines a reader sees, and read InheritedStyle to discover the defaults a table picks up before any explicit overrides.

    The add table how-to walks through building a table, and the add table example has a worked listing.

    Properties

    Borders

    The borders for the table.

    Declaration
    TableBorders Borders { get; }
    Property Value
    Type Description
    TableBorders

    InheritedStyle

    Inherited style for tables.

    Declaration
    ITableStyle InheritedStyle { get; }
    Property Value
    Type Description
    ITableStyle

    Inherited members

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