Class Row
Represents a Row.
Inherited Members
Namespace: DRIT.Document.Tables
Assembly: DRIT.Document.dll
Syntax
public class Row : CompositeNode, IEnumerable<Node>, IEnumerable
Constructors
Row()
Initializes a new instance of the Row class.
Declaration
public Row()
Properties
Cells
Gets or sets cells.
Declaration
public CellCollection Cells { get; }
Property Value
| Type | Description |
|---|---|
| CellCollection |
NodeType
Gets node type.
Declaration
public override NodeType NodeType { get; }
Property Value
| Type | Description |
|---|---|
| NodeType |
Overrides
ParentTable
Gets or sets parent table.
Declaration
public Table ParentTable { get; }
Property Value
| Type | Description |
|---|---|
| Table |
Revision
The tracked-change revision for this table row, or null. When RevisionType.Delete, the row is marked as deleted (removed on accept). When RevisionType.Insert, the row is marked as inserted (removed on reject).
Declaration
public Revision Revision { get; set; }
Property Value
| Type | Description |
|---|---|
| Revision |
RowFormat
Gets or sets row format.
Declaration
public RowFormat RowFormat { get; }
Property Value
| Type | Description |
|---|---|
| RowFormat |
RowFormatRevision
Gets or sets the tracked revision for this row's formatting.
Declaration
public TableRowFormatRevision RowFormatRevision { get; set; }
Property Value
| Type | Description |
|---|---|
| TableRowFormatRevision |
Methods
AddCell()
Provides the add Cell behavior for this object.
Declaration
public Cell AddCell()
Returns
| Type | Description |
|---|---|
| Cell | The resulting value. |
Clone(bool)
Creates a copy of this row, including its formatting and, optionally, its content.
Declaration
public Row Clone(bool cloneContent)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | cloneContent | Whether paragraphs, runs, and run formatting are copied. |
Returns
| Type | Description |
|---|---|
| Row | A detached copy of this row. |
InsertCell(int)
Inserts a cell at the specified zero-based index.
Declaration
public Cell InsertCell(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based insertion index. |
Returns
| Type | Description |
|---|---|
| Cell | The inserted cell. |
RemoveCellAt(int)
Removes the cell at the specified zero-based index.
Declaration
public void RemoveCellAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index to remove. |