menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Table - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Table

    Represents a Table.

    Inheritance
    System.Object
    EntityBase
    XDLSSerializableBase
    WidgetBase
    ParagraphItem
    Table
    Implements
    IXDLSSerializable
    ITable
    IParagraphItem
    IEntityBase
    ITableWidget
    IWidget
    Inherited Members
    EntityBase.Document
    EntityBase.DocumentEx
    EntityBase.Owner
    EntityBase.SetOwner(IEntityBase)
    ParagraphItem.m_iStartIndex
    ParagraphItem.OwnerParagraph
    ParagraphItem.SetOwnerParagraph(IParagraph, Int32)
    ParagraphItem.StartIndex
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    WidgetBase.DrawImpl(CustomGraphics, LayoutedWidget)
    WidgetBase.IWidget.LayoutInfo
    WidgetBase.m_layoutInfo
    XDLSSerializableBase.IXDLSSerializable.ReadXmlAttributes(IXDLSAttributeReader)
    XDLSSerializableBase.IXDLSSerializable.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.IXDLSSerializable.RestoreReference(String, Int32)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlAttributes(IXDLSAttributeWriter)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.IXDLSSerializable.XDLSHolder
    XDLSSerializableBase.m_id
    XDLSSerializableBase.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.RestoreReference(String, Int32)
    XDLSSerializableBase.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.XDLSHolder
    Namespace: Syncfusion.DLS
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class Table : ParagraphItem, IXDLSSerializable, ITable, IParagraphItem, IEntityBase, ITableWidget, IWidget

    Constructors

    Table(IDocument)

    Declaration
    public Table(IDocument doc)
    Parameters
    Type Name Description
    IDocument doc

    Table(ITable, IParagraph)

    Declaration
    protected Table(ITable table, IParagraph paragraph)
    Parameters
    Type Name Description
    ITable table
    IParagraph paragraph

    Properties

    Columns

    Gets table columns

    Declaration
    public TableColumnCollection Columns { get; }
    Property Value
    Type
    TableColumnCollection

    Item[Int32, Int32]

    Get tavble cell by row and column index

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

    LastCell

    Get last cell of the table

    Declaration
    public TableCell LastCell { get; }
    Property Value
    Type
    TableCell

    LastRow

    Get last row of the table

    Declaration
    public TableRow LastRow { get; }
    Property Value
    Type
    TableRow

    Rows

    Get table rows

    Declaration
    public RowCollection Rows { get; }
    Property Value
    Type
    RowCollection

    TableFormat

    Gets table format

    Declaration
    public TableFormat TableFormat { get; }
    Property Value
    Type
    TableFormat
    Remarks

    Not supported by Essential PDF

    Width

    Gets / sets table width

    Declaration
    public float Width { get; set; }
    Property Value
    Type
    System.Single
    Remarks

    Not supported by Essential PDF

    Methods

    AddColumn()

    Adds columkn to table

    Declaration
    public void AddColumn()

    AddColumn(Int32)

    Adds several columns to table

    Declaration
    public void AddColumn(int columnsCount)
    Parameters
    Type Name Description
    System.Int32 columnsCount

    AddRow()

    Adds row to table

    Declaration
    public TableRow AddRow()
    Returns
    Type
    TableRow

    AddRow(Boolean)

    Adds row to table with copy format option

    Declaration
    public TableRow AddRow(bool isCopyFormat)
    Parameters
    Type Name Description
    System.Boolean isCopyFormat

    Indicates whether copy format from previous row or not

    Returns
    Type
    TableRow

    Clone(IParagraph)

    Clones itself

    Declaration
    public override IParagraphItem Clone(IParagraph paragraph)
    Parameters
    Type Name Description
    IParagraph paragraph
    Returns
    Type
    IParagraphItem
    Overrides
    ParagraphItem.Clone(IParagraph)

    CorrectTableCellWidths()

    Declaration
    protected void CorrectTableCellWidths()

    CorrectTableWidth(TableRow)

    Declaration
    protected void CorrectTableWidth(TableRow row)
    Parameters
    Type Name Description
    TableRow row

    CreateLayoutInfo()

    Declaration
    protected override void CreateLayoutInfo()
    Overrides
    WidgetBase.CreateLayoutInfo()

    InitXDLSHolder()

    Declaration
    protected override void InitXDLSHolder()
    Overrides
    XDLSSerializableBase.InitXDLSHolder()

    ReadXmlAttributes(IXDLSAttributeReader)

    Declaration
    protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
    Parameters
    Type Name Description
    IXDLSAttributeReader reader
    Overrides
    ParagraphItem.ReadXmlAttributes(IXDLSAttributeReader)

    ResetCells(Int32, Int32)

    Resets all cells to default state

    Declaration
    public void ResetCells(int rowsNum, int columnsNum)
    Parameters
    Type Name Description
    System.Int32 rowsNum
    System.Int32 columnsNum

    WriteXmlAttributes(IXDLSAttributeWriter)

    Declaration
    protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
    Parameters
    Type Name Description
    IXDLSAttributeWriter writer
    Overrides
    ParagraphItem.WriteXmlAttributes(IXDLSAttributeWriter)

    Explicit Interface Implementations

    ITableWidget.ColumnsCount

    Declaration
    int ITableWidget.ColumnsCount { get; }
    Returns
    Type
    System.Int32

    ITableWidget.GetCellWidget(Int32, Int32)

    Declaration
    IWidgetContainer ITableWidget.GetCellWidget(int row, int column)
    Parameters
    Type Name Description
    System.Int32 row
    System.Int32 column
    Returns
    Type
    IWidgetContainer

    ITableWidget.GetRowWidget(Int32)

    Declaration
    IWidget ITableWidget.GetRowWidget(int row)
    Parameters
    Type Name Description
    System.Int32 row
    Returns
    Type
    IWidget

    ITableWidget.RowsCount

    Declaration
    int ITableWidget.RowsCount { get; }
    Returns
    Type
    System.Int32

    ITableWidget.TableLayoutInfo

    Declaration
    ITableLayoutInfo ITableWidget.TableLayoutInfo { get; }
    Returns
    Type
    ITableLayoutInfo

    IWidget.Draw(CustomGraphics, LayoutedWidget)

    Declaration
    void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
    Parameters
    Type Name Description
    CustomGraphics cg
    LayoutedWidget ltWidget

    Implements

    IXDLSSerializable
    ITable
    IParagraphItem
    IEntityBase
    ITableWidget
    IWidget
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved