Table of Contents

Class Sheet

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A sheet of a TwSpreadsheet workbook: its name and the cells that hold something.

[ExcludeFromCodeCoverage]
public sealed class Sheet
Inheritance
Sheet
Inherited Members

Constructors

Sheet()

public Sheet()

Properties

Cells

Gets or sets the cells that hold something, keyed by their address, such as A1 or C12. A cell that is not in the dictionary is empty.

public Dictionary<string, SheetCell> Cells { get; set; }

Property Value

Dictionary<string, SheetCell>

Remarks

The sheet edits this dictionary in place as the user types. Addresses are matched without regard to case.

ColumnWidths

Gets or sets the widths of the columns that are not the spreadsheet's ColumnWidth, in pixels, keyed by their letters, such as A.

public Dictionary<string, int> ColumnWidths { get; set; }

Property Value

Dictionary<string, int>

Remarks

The spreadsheet adds to this dictionary as the user resizes columns.

FrozenColumns

Gets or sets the number of columns at the start that stay in view while the sheet scrolls across. Defaults to 0.

public int FrozenColumns { get; set; }

Property Value

int

FrozenRows

Gets or sets the number of rows at the top that stay in view while the sheet scrolls down. Defaults to 0.

public int FrozenRows { get; set; }

Property Value

int

Name

Gets or sets the name shown on the sheet's tab, which formulas on other sheets use to refer to it, as in =Budget!B4. Defaults to Sheet1.

public string Name { get; set; }

Property Value

string

RowHeights

Gets or sets the heights of the rows that are not 32 pixels, in pixels, keyed by their row number, starting at 1.

public Dictionary<int, int> RowHeights { get; set; }

Property Value

Dictionary<int, int>

Remarks

The spreadsheet adds to this dictionary as the user resizes rows, or picks a text size too large for a row.

Tables

Gets or sets the tables on the sheet: ranges with a heading row, banded rows and a filter on each column.

public List<SheetTable> Tables { get; set; }

Property Value

List<SheetTable>