Search Results for

    Show / Hide Table of Contents

    Class TableRowStyle

    Styling for table rows.

    Inheritance
    System.Object
    TableRowStyle
    Implements
    ITableRowStyle
    IronSoftware.Abstractions.Word.ITableRowStyle
    IronSoftware.Abstractions.Word.IDerivedStyle
    IronSoftware.Abstractions.Word.IStyle
    IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
    IronSoftware.Abstractions.IDocumentObjectProperty
    Namespace: IronWord.Models
    Assembly: IronWord.dll
    Syntax
    public class TableRowStyle : Object, ITableRowStyle

    Row-level sizing for a Word table is captured by TableRowStyle, the styling record that holds the appearance settings for a table row separately from its cells. One instance describes a single row's style and exposes it through IronWord's derived-style contracts, so row styling can be defined and reused rather than set inline.

    The setting it carries is Height, a nullable value that sets how tall the row renders, measured in twips by default; leaving it null lets the row size to its content. Build a TableRowStyle, set Height to the value you need, and apply it where a row style is accepted. Because the height is nullable, a developer expresses "no fixed height" simply by leaving it unset, which is the right choice when the row should grow to fit whatever content it holds. A fixed height is useful for header rows or for keeping a table's rows visually even.

    using IronWord.Models;
    
    TableRowStyle rowStyle = new TableRowStyle
    {
        Height = 600
    };

    The add a table how-to covers table and row styling, and the document element tutorial shows where row styling fits the document model.

    Constructors

    TableRowStyle()

    Declaration
    public TableRowStyle()

    Properties

    Height

    Declaration
    public Nullable<long> Height { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    Implements

    ITableRowStyle
    IronSoftware.Abstractions.Word.ITableRowStyle
    IronSoftware.Abstractions.Word.IDerivedStyle
    IronSoftware.Abstractions.Word.IStyle
    IronSoftware.Abstractions.Word.IWordDocumentObjectProperty
    IronSoftware.Abstractions.IDocumentObjectProperty
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet