TableRow Class
Represents a single table row, which contains the table's cells.
public sealed class TableRow : Element, IContentElement
Public NotInheritable Class TableRow
Inherits Element
Implements IContentElement
- Inheritance:
- System.ObjectTableRow
Implements
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.
Parameters
document
- DocumentModel
The owner document.
TableRow(DocumentModel, TableCell[])
Initializes a new instance of the TableRow class with a specified cells.
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.
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.
public TableCellCollection Cells { get; }
Public ReadOnly Property Cells As TableCellCollection
Property Value
The table cells contained in this row.
Remarks
Document
Gets the owner document.
public override DocumentModel Document { get; }
Public Overrides ReadOnly Property Document As DocumentModel
Property Value
The owner document.
Overrides
ElementType
Gets the ElementType of this Element instance.
public override ElementType ElementType { get; }
Public Overrides ReadOnly Property ElementType As ElementType
Property Value
The ElementType of this Element instance.
Overrides
Parent
Property Value
ParentCollection
Gets the TableRowCollection that contains this TableRow instance.
public TableRowCollection ParentCollection { get; }
Public ReadOnly Property ParentCollection As TableRowCollection
Property Value
The TableRowCollection that contains this TableRow instance.
Revision
Gets or sets the revision information for the table row.
Property Value
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.
Property Value
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.
public TableRowFormatRevision RowFormatRevision { get; set; }
Public Property RowFormatRevision As TableRowFormatRevision
Property Value
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.
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
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) |