GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    TableRow Class

    Namespace:
    GemBox.Document.Tables
    Assembly:
    GemBox.Document.dll

    Represents a single table row, which contains the table's cells.

    • C#
    • VB.NET
    public sealed class TableRow : Element, IContentElement
    Public NotInheritable Class TableRow
        Inherits Element
        Implements IContentElement
    Inheritance:
    System.Object
    Element
    TableRow
    Implements
    IContentElement
    Remarks

    TableRow is a content Element consisting of TableCell elements.

    TableRow can be formatted using the RowFormat property.

    For more information, see table examples.

    Constructors

    TableRow(DocumentModel)

    Initializes a new instance of the TableRow class.

    • C#
    • VB.NET
    public TableRow(DocumentModel document)
    Public Sub New(document As DocumentModel)
    Parameters
    document
    DocumentModel

    The owner document.

    TableRow(DocumentModel, TableCell[])

    Initializes a new instance of the TableRow class with a specified cells.

    • C#
    • VB.NET
    public TableRow(DocumentModel document, params TableCell[] cells)
    Public Sub New(document As DocumentModel, ParamArray cells As TableCell())
    Parameters
    document
    DocumentModel

    The owner document.

    cells
    TableCell[]

    The table cells.

    TableRow(DocumentModel, IEnumerable<TableCell>)

    Initializes a new instance of the TableRow class with a specified cells.

    • C#
    • VB.NET
    public TableRow(DocumentModel document, IEnumerable<TableCell> cells)
    Public Sub New(document As DocumentModel, cells As IEnumerable(Of TableCell))
    Parameters
    document
    DocumentModel

    The owner document.

    cells
    System.Collections.Generic.IEnumerable<TableCell>

    The table cells.

    Properties

    Cells

    Gets the table cells contained in this row.

    • C#
    • VB.NET
    public TableCellCollection Cells { get; }
    Public ReadOnly Property Cells As TableCellCollection
    Property Value
    TableCellCollection

    The table cells contained in this row.

    Remarks

    Since TableCell class is sealed, only supported element in this collection is TableCell.

    Document

    Gets the owner document.

    • C#
    • VB.NET
    public override DocumentModel Document { get; }
    Public Overrides ReadOnly Property Document As DocumentModel
    Property Value
    DocumentModel

    The owner document.

    Overrides
    Element.Document

    ElementType

    Gets the ElementType of this Element instance.

    • C#
    • VB.NET
    public override ElementType ElementType { get; }
    Public Overrides ReadOnly Property ElementType As ElementType
    Property Value
    ElementType

    The ElementType of this Element instance.

    Overrides
    Element.ElementType

    Parent

    Gets the parent Table of this TableRow instance.

    • C#
    • VB.NET
    public Table Parent { get; }
    Public ReadOnly Property Parent As Table
    Property Value
    Table

    The parent Table of this TableRow instance.

    ParentCollection

    Gets the TableRowCollection that contains this TableRow instance.

    • C#
    • VB.NET
    public TableRowCollection ParentCollection { get; }
    Public ReadOnly Property ParentCollection As TableRowCollection
    Property Value
    TableRowCollection

    The TableRowCollection that contains this TableRow instance.

    Revision

    Gets or sets the revision information for the table row.

    • C#
    • VB.NET
    public Revision Revision { get; set; }
    Public Property Revision As Revision
    Property Value
    Revision

    The revision information for the table row.

    Remarks

    The revision is internally stored as a member of RowFormat. Using set property on RowFormat overrides this revision.

    RowFormat

    Gets or sets the table row format.

    • C#
    • VB.NET
    public TableRowFormat RowFormat { get; set; }
    Public Property RowFormat As TableRowFormat
    Property Value
    TableRowFormat

    The table row format.

    RowFormatRevision

    Gets or sets the revision of the row format of this table row. This property contains the row format which was applied to this row before the revision.

    • C#
    • VB.NET
    public TableRowFormatRevision RowFormatRevision { get; set; }
    Public Property RowFormatRevision As TableRowFormatRevision
    Property Value
    TableRowFormatRevision

    The revision of the row format of this table row.

    Remarks

    The revision is internally stored as a member of RowFormat. Using set property on RowFormat overrides this revision.

    Methods

    Clone(Boolean)

    Clones this TableRow instance.

    • C#
    • VB.NET
    public TableRow Clone(bool cloneDescendants)
    Public Function Clone(cloneDescendants As Boolean) As TableRow
    Parameters
    cloneDescendants
    System.Boolean

    If set to true clone all descendants recursively; otherwise clone only current TableRow.

    Returns
    TableRow

    Cloned TableRow.

    Remarks

    Document content element instance can exist only in a one place in the document.

    If you want to insert document content element into some other part of the same document, then clone the element and insert its clone.

    If you want to insert document content element into another document, then you should first import it into another document with Import<T>(T, Boolean, Boolean) method and then insert the imported element.

    For more information, see cloning example.

    Inherited Properties

    Content

    Gets the content of the current Element.

    (Inherited from Element)

    Inherited Methods

    GetChildElements(System.Boolean)

    Gets the child elements.

    (Inherited from Element)

    GetChildElements(System.Boolean, ElementType[])

    Gets the child elements filtered by ElementType.

    (Inherited from Element)

    GetParentElements()

    Gets the parent elements.

    (Inherited from Element)

    GetParentElements(ElementType[])

    Gets the parent elements.

    (Inherited from Element)

    Implements

    IContentElement
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.