Table of Contents

Class SheetTable

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A table on a Sheet of a TwSpreadsheet: a range whose first row holds the column headings, with banded rows and a filter on each column, in the manner of an Excel table.

[ExcludeFromCodeCoverage]
public sealed class SheetTable
Inheritance
SheetTable
Inherited Members

Constructors

SheetTable()

public SheetTable()

Properties

Banded

Gets or sets whether every other row of the table is shaded. Defaults to true.

public bool Banded { get; set; }

Property Value

bool

Conditions

Gets or sets condition filters on the table's columns, keyed by the column's letters, such as B: one or two conditions such as "is greater than 100", the same as a TwDataTable<TItem> column filter. Rows whose value does not meet them are hidden, as well as rows Filters hides.

public Dictionary<string, ColumnFilter> Conditions { get; set; }

Property Value

Dictionary<string, ColumnFilter>

Filters

Gets or sets the filters on the table's columns, keyed by the column's letters, such as B. Each lists the values, as the cells show them, whose rows stay in view; the other rows are hidden. An empty string stands for empty cells. A column without an entry is not filtered.

public Dictionary<string, List<string>> Filters { get; set; }

Property Value

Dictionary<string, List<string>>

Name

Gets or sets the table's name, such as Table1.

public string Name { get; set; }

Property Value

string

Range

Gets or sets the cells the table covers, heading row included, such as A1:D20.

public string Range { get; set; }

Property Value

string

ShowFilterButtons

Gets or sets whether each heading has a button that filters and sorts its column. Defaults to true.

public bool ShowFilterButtons { get; set; }

Property Value

bool