A collection of sheets in a workbook.
Inheritance
object
Implements
- IList<Sheet>
- ICollection<Sheet>
- IEnumerable<Sheet>
- IEnumerable
Properties
Section titled "Properties"Count
Section titled "Count"Gets the number of sheets in the collection.
public int Count { get; } this[int]
Section titled "this[int]"Gets the sheet at the specified index.
public Sheet this[int index] { get; } this[string]
Section titled "this[string]"Gets the sheet with the specified name.
public Sheet this[string name] { get; } Methods
Section titled "Methods"Add(string, SheetType)
Section titled "Add(string, SheetType)"Creates a new and adds it to the collection.
public Sheet Add(string name, SheetType type) Parameters
- name:
string - type:
SheetType
Returns any
Clear()
Section titled "Clear()"Clears all sheets from the collection.
public void Clear() Returns any
Contains(Sheet)
Section titled "Contains(Sheet)"Determines whether a sheet is in the collection.
public bool Contains(Sheet sheet) Parameters
- sheet:
Sheet
Returns any
Exists(string)
Section titled "Exists(string)"Determines whether a sheet with the specified name exists in the collection.
public bool Exists(string name) Parameters
- name:
string
Returns any
IndexOf(Sheet)
Section titled "IndexOf(Sheet)"Gets the index of the specified sheet in the collection.
public int IndexOf(Sheet sheet) Parameters
- sheet:
Sheet
Returns any
Remove(Sheet)
Section titled "Remove(Sheet)"Removes the specified sheet from the collection.
public bool Remove(Sheet sheet) Parameters
- sheet:
Sheet
Returns any
RemoveAt(int)
Section titled "RemoveAt(int)"Removes the sheet at the specified index from the collection.
public void RemoveAt(int index) Parameters
- index:
int