Search Results for

    Show / Hide Table of Contents

    Class Table

    Inheritance
    System.Object
    ContentElement
    ParentElement
    TableElements
    Table
    Implements
    IronSoftware.Abstractions.IDocumentElement
    IronSoftware.IDocumentObject
    System.ICloneable
    IronSoftware.Abstractions.IElementContainer<ContentElementCollection, ContentElement>
    System.Collections.Generic.IEnumerable<TableCell>
    System.Collections.IEnumerable
    System.Collections.Generic.IEnumerable<TableRow>
    Inherited Members
    TableElements.SetBorders(TableBorders)
    TableElements.Borders
    TableElements.BackgroundColor
    ParentElement.AddChild(ContentElement[])
    ParentElement.InsertChildToIndex(Int32, ContentElement[])
    ParentElement.Remove()
    ParentElement.RemoveChildren(ContentElement[])
    ParentElement.RemoveAllChildren()
    ParentElement.ExtractElements<T>()
    ParentElement.GetChildByIndex<T>(Int32)
    ParentElement.Clone()
    ParentElement.CloneObject()
    ParentElement.LogObjectTree()
    ParentElement.DefaultTextStyle
    ParentElement.Texts
    ParentElement.Tables
    ParentElement.Children
    ContentElement.Status
    ContentElement.Replace(ContentElement)
    ContentElement.GetIndex<T>()
    ContentElement.Parent
    ContentElement.ObjNum
    ContentElement.PageIndex
    ContentElement.DocumentId
    Namespace: IronWord.Models
    Assembly: IronWord.dll
    Syntax
    public class Table : TableElements, IDocumentElement, IDocumentObject, ICloneable, IElementContainer<ContentElementCollection, ContentElement>, IEnumerable<TableCell>, IEnumerable, IEnumerable<TableRow>

    Constructors

    Table()

    Declaration
    public Table()

    Table(TableRow[])

    Declaration
    public Table(params TableRow[] rows)
    Parameters
    Type Name Description
    TableRow[] rows

    Table(Int32, Int32)

    Declaration
    public Table(int row, int column)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column

    Properties

    Direction

    Declaration
    public Direction Direction { get; set; }
    Property Value
    Type Description
    Direction

    Index

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    Item[Int32]

    Declaration
    public TableRow this[int row] { get; set; }
    Parameters
    Type Name Description
    System.Int32 row
    Property Value
    Type Description
    TableRow

    Item[Int32, Int32]

    Declaration
    public TableCell this[int row, int column] { get; set; }
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    Property Value
    Type Description
    TableCell

    MergedCells

    Declaration
    public List<MergeCell> MergedCells { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MergeCell>

    Rows

    Declaration
    public List<TableRow> Rows { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<TableRow>

    Shading

    Declaration
    public Shading Shading { get; set; }
    Property Value
    Type Description
    Shading

    Style

    Declaration
    public TableStyle Style { get; set; }
    Property Value
    Type Description
    TableStyle

    Width

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    Zebra

    Declaration
    public ZebraColor Zebra { get; set; }
    Property Value
    Type Description
    ZebraColor

    Methods

    AddColumn()

    Declaration
    public Table AddColumn()
    Returns
    Type Description
    Table

    AddRow(TableRow)

    Declaration
    public Table AddRow(TableRow row)
    Parameters
    Type Name Description
    TableRow row
    Returns
    Type Description
    Table

    GetCell(Int32, Int32)

    Declaration
    public TableCell GetCell(int row, int column)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    Returns
    Type Description
    TableCell

    GetCellValue(Int32, Int32)

    Declaration
    public List<ContentElement> GetCellValue(int row, int column)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    Returns
    Type Description
    System.Collections.Generic.List<ContentElement>

    GetEnumerator()

    Declaration
    public IEnumerator<TableCell> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<TableCell>

    GetRow(Int32)

    Declaration
    public TableRow GetRow(int row)
    Parameters
    Type Name Description
    System.Int32 row
    Returns
    Type Description
    TableRow

    GetWidth(Units)

    Declaration
    public double GetWidth(Units measurementUnit)
    Parameters
    Type Name Description
    Units measurementUnit
    Returns
    Type Description
    System.Double

    MergeCells(Int32, Int32, Int32, Int32)

    Declaration
    public Table MergeCells(int startRow, int startColumn, int endRow, int endColumn)
    Parameters
    Type Name Description
    System.Int32 startRow
    System.Int32 startColumn
    System.Int32 endRow
    System.Int32 endColumn
    Returns
    Type Description
    Table

    RemoveColumn(Int32)

    Declaration
    public Table RemoveColumn(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    Table

    RemoveRow(Int32)

    Declaration
    public Table RemoveRow(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    Table

    SetCellValue(Int32, Int32, ContentElement)

    Declaration
    public Table SetCellValue(int row, int column, ContentElement content)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    ContentElement content
    Returns
    Type Description
    Table

    SetWidth(Double, Units)

    Declaration
    public Table SetWidth(double width, Units measurementUnit)
    Parameters
    Type Name Description
    System.Double width
    Units measurementUnit
    Returns
    Type Description
    Table

    Split(Int32, Int32, Int32, Int32)

    Declaration
    public Table Split(int row, int column, int toRow, int toColumn)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    System.Int32 toRow
    System.Int32 toColumn
    Returns
    Type Description
    Table

    Implements

    IronSoftware.Abstractions.IDocumentElement
    IronSoftware.IDocumentObject
    System.ICloneable
    IronSoftware.Abstractions.IElementContainer<, >
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    System.Collections.Generic.IEnumerable<>

    Inherited members

    SetBorders(TableBorders)
    Borders
    BackgroundColor
    AddChild(ContentElement[])
    InsertChildToIndex(Int32, ContentElement[])
    Remove()
    RemoveChildren(ContentElement[])
    RemoveAllChildren()
    ExtractElements<T>()
    GetChildByIndex<T>(Int32)
    Clone()
    CloneObject()
    LogObjectTree()
    DefaultTextStyle
    Texts
    Tables
    Children
    Status
    Replace(ContentElement)
    GetIndex<T>()
    Parent
    ObjNum
    PageIndex
    DocumentId
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.