Class TableCollection
Provides ordered access to the tables in a story.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class TableCollection : IEnumerable<Table>, IEnumerable
Properties
Count
Gets the number of tables in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the table at the specified zero-based index.
Declaration
public Table this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based table index. |
Property Value
| Type | Description |
|---|---|
| Table | The table at |
Methods
Add(Table)
Adds a table to the end of the story.
Declaration
public void Add(Table item)
Parameters
| Type | Name | Description |
|---|---|---|
| Table | item | The table to add. |
GetEnumerator()
Returns an enumerator over tables in story order.
Declaration
public IEnumerator<Table> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<Table> | An enumerator over the live collection. |
Insert(int, Table)
Inserts a table at the specified zero-based index.
Declaration
public void Insert(int index, Table item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based insertion index. |
| Table | item | The table to insert. |
RemoveAt(int)
Removes the table at the specified zero-based index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index to remove. |