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