Class ExcelTableCollection
- Namespace
- OfficeOpenXml.Table
- Assembly
- EPPlus.dll
A collection of table objects
public class ExcelTableCollection : IEnumerable<ExcelTable>, IEnumerable
- Inheritance
-
ExcelTableCollection
- Implements
- Inherited Members
Properties
Count
Number of items in the collection
public int Count { get; }
Property Value
this[int]
The table Index. Base 0.
public ExcelTable this[int Index] { get; }
Parameters
Index
int
Property Value
this[string]
Indexer
public ExcelTable this[string Name] { get; }
Parameters
Name
stringThe name of the table
Property Value
- ExcelTable
The table. Null if the table name is not found in the collection
Methods
Add(ExcelAddressBase, string)
Create a table on the supplied range
public ExcelTable Add(ExcelAddressBase Range, string Name)
Parameters
Range
ExcelAddressBaseThe range address including header and total row
Name
stringThe name of the table. Must be unique
Returns
- ExcelTable
The table object
Delete(ExcelTable, bool)
Delete the table
public void Delete(ExcelTable Table, bool ClearRange = false)
Parameters
Table
ExcelTableThe table object
ClearRange
boolClear the table range
Delete(int, bool)
Delete the table at the specified index
public void Delete(int Index, bool ClearRange = false)
Parameters
Delete(string, bool)
Delete the table with the specified name
public void Delete(string Name, bool ClearRange = false)
Parameters
GetEnumerator()
Gets the enumerator for the collection
public IEnumerator<ExcelTable> GetEnumerator()
Returns
- IEnumerator<ExcelTable>
The enumerator
GetFromRange(ExcelRangeBase)
Get the table object from a range.
public ExcelTable GetFromRange(ExcelRangeBase Range)
Parameters
Range
ExcelRangeBaseThe range
Returns
- ExcelTable
The table. Null if no range matches