Class WorksheetDataTableCollection
A collection of WorksheetDataTable instances on a worksheet.
Inheritance
Implements
Namespace: Infragistics.Documents.Excel
Assembly: IgniteUI.Blazor.Documents.Excel.dll
Syntax
public sealed class WorksheetDataTableCollection : Object, ICollection<WorksheetDataTable>, IEnumerable<WorksheetDataTable>, IEnumerable
Properties
Count
Gets the number of data tables in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of data tables in the collection. |
Item[Int32]
Gets the data table at the specified index in the collection.
Declaration
public WorksheetDataTable this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the data table to get. |
Property Value
Type | Description |
---|---|
WorksheetDataTable | The data table at the specified index. |
Methods
Add(WorksheetRegion, WorksheetCell, WorksheetCell)
Creates a new data table and adds it to the collection.
Declaration
public WorksheetDataTable Add(WorksheetRegion cellsInTable, WorksheetCell columnInputCell, WorksheetCell rowInputCell)
Parameters
Type | Name | Description |
---|---|---|
WorksheetRegion | cellsInTable | The region of cells in the data table. |
WorksheetCell | columnInputCell | The cell used as the column-input cell in the data table. |
WorksheetCell | rowInputCell | The cell used as the row-input cell in the data table. |
Returns
Type | Description |
---|---|
WorksheetDataTable | The newly created data table. |
Remarks
The input cells specified must be different cell references and at least one must be non-null. See the WorksheetDataTable overview for more information on data tables.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|
System.ArgumentException |
|
System.ArgumentException |
|
System.InvalidOperationException | Both |
System.InvalidOperationException |
|
System.InvalidOperationException |
|
System.InvalidOperationException | One or more of the interior cells of the |
Clear()
Clears all data tables from the collection.
Declaration
public void Clear()
Remarks
Once a data table is removed from the collection, it can no longer be used.
Remove(WorksheetDataTable)
Removes the specified data table from the collection.
Declaration
public bool Remove(WorksheetDataTable dataTable)
Parameters
Type | Name | Description |
---|---|---|
WorksheetDataTable | dataTable | The data table to remove from the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if the dataTable was successfully removed; False if the dataTable was not in the collection. |
Remarks
Once a data table is removed from the collection, it can no longer be used.
RemoveAt(Int32)
Removes the data table at the specified index from the collection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the data table to remove from the collection. |
Remarks
Once a data table is removed from the collection, it can no longer be used.