A collection of sheets in a workbook.

Inheritance

Implements
  • IList<Sheet>
  • ICollection<Sheet>
  • IEnumerable<Sheet>
  • IEnumerable

Gets the number of sheets in the collection.

public int Count { get; }

Gets the sheet at the specified index.

public Sheet this[int index] { get; }

Gets the sheet with the specified name.

public Sheet this[string name] { get; }

Creates a new and adds it to the collection.

public Sheet Add(string name, SheetType type)

Parameters

  • name: string
  • type: SheetType

Returns any

Clears all sheets from the collection.

public void Clear()

Returns any

Determines whether a sheet is in the collection.

public bool Contains(Sheet sheet)

Parameters

  • sheet: Sheet

Returns any

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

public bool Exists(string name)

Parameters

  • name: string

Returns any

Gets the index of the specified sheet in the collection.

public int IndexOf(Sheet sheet)

Parameters

  • sheet: Sheet

Returns any

Removes the specified sheet from the collection.

public bool Remove(Sheet sheet)

Parameters

  • sheet: Sheet

Returns any

Removes the sheet at the specified index from the collection.

public void RemoveAt(int index)

Parameters

  • index: int

Returns any