[]
Represents the collection of all ITable objects in a worksheet.
Each ITable object represents a table in the worksheet. Use this interface to access existing tables, add new tables, and enumerate the tables returned by Tables.
public interface ITables : IEnumerable
Public Interface ITables
Inherits IEnumerable
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"Test", 100}
};
ITables tables = worksheet.Tables;
ITable table = tables.Add(worksheet.Range["A1:B3"], true);
| Name | Description |
|---|---|
| Count | Gets the number of ITable objects in this collection. Use this property to get the number of tables defined on the worksheet. |
| this[int] | Gets the ITable object at the specified index. Use this indexer to retrieve an existing table from the collection returned by Tables. |
| this[string] | Gets the ITable object with the specified name. Use this indexer to retrieve an existing table from the collection returned by Tables. |
| Name | Description |
|---|---|
| Add(IRange, bool) | Creates a table that includes the specified range of cells.
Use this method to convert a worksheet range into a table. Set
|
| FromJson(string) | Loads the table collection from the specified JSON string. |
| ToJson() | Generates a JSON string from the tables in the worksheet. |