Class TableCellCollection
Collection of cells in one row.
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class TableCellCollection : IReadOnlyList<TableCell>, IReadOnlyCollection<TableCell>, IEnumerable<TableCell>, IEnumerable
Properties
Count
Gets the number of cells in this collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the cell at the specified index.
Declaration
public TableCell this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index. |
Property Value
| Type | Description |
|---|---|
| TableCell |
Methods
Add()
Adds a new empty cell to this collection.
Declaration
public TableCell Add()
Returns
| Type | Description |
|---|---|
| TableCell | The newly created cell. |
Add(string)
Adds a new cell with the specified text to this collection.
Declaration
public TableCell Add(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The cell text. Null values are treated as empty string. |
Returns
| Type | Description |
|---|---|
| TableCell | The newly created cell. |
GetEnumerator()
Returns an enumerator for iterating over cells.
Declaration
public IEnumerator<TableCell> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<TableCell> |