Class NoxGridSheetCollection
Sheet collection. Add, Insert, Remove, find by name.
public sealed class NoxGridSheetCollection : IEnumerable<NoxGridSheet>, IEnumerable
- Inheritance
-
NoxGridSheetCollection
- Implements
- Inherited Members
Properties
Count
Number of sheets.
public int Count { get; }
Property Value
this[int]
Sheet at a position.
public NoxGridSheet this[int index] { get; }
Parameters
indexint
Property Value
this[string]
Finds a sheet by name (case-insensitive; null if not found).
public NoxGridSheet this[string name] { get; }
Parameters
namestring
Property Value
Methods
Add(string)
Appends a new sheet (with a grid). If name is empty or a duplicate, Sheet1, Sheet2 … is used.
public NoxGridSheet Add(string name)
Parameters
namestring
Returns
Attach(int, NoxGridSheet)
Inserts a prebuilt sheet (containing a grid) at index (for the designer).
public void Attach(int index, NoxGridSheet sheet)
Parameters
indexintsheetNoxGridSheet
GetEnumerator()
public IEnumerator<NoxGridSheet> GetEnumerator()
Returns
IndexOf(NoxGridSheet)
Position of a sheet (-1 if not in this book).
public int IndexOf(NoxGridSheet sheet)
Parameters
sheetNoxGridSheet
Returns
Insert(int, string)
Inserts a new sheet at index.
public NoxGridSheet Insert(int index, string name)
Parameters
Returns
Move(NoxGridSheet, int)
Changes the sheet order.
public void Move(NoxGridSheet sheet, int newIndex)
Parameters
sheetNoxGridSheetnewIndexint
Remove(NoxGridSheet)
Removes a sheet from the book.
public void Remove(NoxGridSheet sheet)
Parameters
sheetNoxGridSheet
RemoveAt(int)
Removes the sheet at a position.
public void RemoveAt(int index)
Parameters
indexint