Table of Contents

Class NoxGridSheetCollection

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

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

int

this[int]

Sheet at a position.

public NoxGridSheet this[int index] { get; }

Parameters

index int

Property Value

NoxGridSheet

this[string]

Finds a sheet by name (case-insensitive; null if not found).

public NoxGridSheet this[string name] { get; }

Parameters

name string

Property Value

NoxGridSheet

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

name string

Returns

NoxGridSheet

Attach(int, NoxGridSheet)

Inserts a prebuilt sheet (containing a grid) at index (for the designer).

public void Attach(int index, NoxGridSheet sheet)

Parameters

index int
sheet NoxGridSheet

GetEnumerator()

public IEnumerator<NoxGridSheet> GetEnumerator()

Returns

IEnumerator<NoxGridSheet>

IndexOf(NoxGridSheet)

Position of a sheet (-1 if not in this book).

public int IndexOf(NoxGridSheet sheet)

Parameters

sheet NoxGridSheet

Returns

int

Insert(int, string)

Inserts a new sheet at index.

public NoxGridSheet Insert(int index, string name)

Parameters

index int
name string

Returns

NoxGridSheet

Move(NoxGridSheet, int)

Changes the sheet order.

public void Move(NoxGridSheet sheet, int newIndex)

Parameters

sheet NoxGridSheet
newIndex int

Remove(NoxGridSheet)

Removes a sheet from the book.

public void Remove(NoxGridSheet sheet)

Parameters

sheet NoxGridSheet

RemoveAt(int)

Removes the sheet at a position.

public void RemoveAt(int index)

Parameters

index int