A collection of worksheets in a workbook.

Inheritance

Implements
  • IList<Worksheet>
  • ICollection<Worksheet>
  • IEnumerable<Worksheet>
  • IEnumerable

Gets the number of worksheets in the collection.

public int Count { get; }

Gets the worksheet at the specified index.

public Worksheet this[int index] { get; }

Gets the worksheet with the specified name.

public Worksheet this[string name] { get; }

Creates a new and adds it to the collection.

public Worksheet Add(string name)

Parameters

  • name: string

Returns any

Clears all worksheets from the collection.

public void Clear()

Returns any

Determines whether a worksheet is in the collection.

public bool Contains(Worksheet worksheet)

Parameters

  • worksheet: Worksheet

Returns any

Determines whether a worksheet with the specified name exists in the collection.

public bool Exists(string name)

Parameters

  • name: string

Returns any

Gets the index of the specified worksheet in the collection.

public int IndexOf(Worksheet worksheet)

Parameters

  • worksheet: Worksheet

Returns any

Removes the specified worksheet from the collection.

public bool Remove(Worksheet worksheet)

Parameters

  • worksheet: Worksheet

Returns any

Removes the worksheet at the specified index from the collection.

public void RemoveAt(int index)

Parameters

  • index: int

Returns any