Class ExcelSheetList<TSheet>
The sheets of a workbook, in workbook order. Indexing or enumerating the list opens nothing.
public sealed class ExcelSheetList<TSheet> : IReadOnlyList<TSheet>, IReadOnlyCollection<TSheet>, IEnumerable<TSheet>, IEnumerable
Type Parameters
TSheetThe workbook's sheet type.
- Inheritance
-
ExcelSheetList<TSheet>
- Implements
-
IReadOnlyList<TSheet>IReadOnlyCollection<TSheet>IEnumerable<TSheet>
- Inherited Members
Properties
Count
Gets the number of sheets.
public int Count { get; }
Property Value
this[int]
Gets the sheet at the given zero-based index.
public TSheet this[int index] { get; }
Parameters
indexintThe zero-based sheet index. Must be within
[0, Count).
Property Value
- TSheet
Exceptions
- ArgumentOutOfRangeException
indexis outside[0, Count).
Methods
GetEnumerator()
Gets an enumerator over the sheets that allocates nothing.
public ArraySegment<TSheet>.Enumerator GetEnumerator()
Returns
- ArraySegment<TSheet>.Enumerator