• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TableCollection

Represents the table collection class used by the spreadsheet model.

Inheritance
object
TableCollection
Implements
IEnumerable<Table>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet.Tables
Assembly: DRIT.Spreadsheet.dll
Syntax
public class TableCollection : IEnumerable<Table>, IEnumerable

Properties

Count

Reports the number of items currently held by TableCollection.

Declaration
public int Count { get; }
Property Value
Type Description
int

The count returned by the operation.

this[int]

Provides indexed access to values in TableCollection.

Declaration
public Table this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
Table

Methods

Add(string, bool)

Adds a new table to the worksheet for the specified range.

Declaration
public Table Add(string rangeLabel, bool hasHeaders)
Parameters
Type Name Description
string rangeLabel
bool hasHeaders
Returns
Type Description
Table

Add(string, string, bool)

Adds the supplied item to TableCollection.

Declaration
public Table Add(string rangeLabel, string tableName, bool hasHeaders)
Parameters
Type Name Description
string rangeLabel

The range label used by the operation.

string tableName

The table name used by the operation.

bool hasHeaders

The has headers used by the operation.

Returns
Type Description
Table

The add returned by the operation.

Clear()

Exposes the clear associated with TableCollection.

Declaration
public void Clear()

GetEnumerator()

Retrieves the requested enumerator from TableCollection.

Declaration
public IEnumerator<Table> GetEnumerator()
Returns
Type Description
IEnumerator<Table>

The get enumerator returned by the operation.

IsInTable(Cell, ref Table)

Indicates whether the in table condition is true for TableCollection.

Declaration
public bool IsInTable(Cell cell, ref Table table)
Parameters
Type Name Description
Cell cell

The cell used by the operation.

Table table

The table used by the operation.

Returns
Type Description
bool

The is in table returned by the operation.

Remove(Table)

Removes the selected item from TableCollection.

Declaration
public void Remove(Table item)
Parameters
Type Name Description
Table item

The item used by the operation.

RemoveAt(int)

Removes the selected at from TableCollection.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

The index used by the operation.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX