WorkbookView Class

Manages per-sheet UI state (SheetView instances) for a workbook. Each sheet gets its own view with independent undo/redo history and rendering state.

Inheritance

Object

Spreadsheet.WorkbookView

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class WorkbookView

Constructors

WorkbookViewLink to this section

Initializes a new instance of the WorkbookView class.

Declaration
public WorkbookView(Documents.Spreadsheet.Workbook workbook)
Parameters
Type Name Description
Documents.Spreadsheet.Workbook workbook

Properties

ShowColumnHeadersLink to this section

Gets or sets whether the column headers are rendered. Applies to every existing and future SheetView.

Declaration
public bool ShowColumnHeaders { get; set; }
Property Value
Type Description
boolGets or sets whether the column headers are rendered. Applies to every existing and future SheetView.

ShowRowHeadersLink to this section

Gets or sets whether the row headers are rendered. Applies to every existing and future SheetView.

Declaration
public bool ShowRowHeaders { get; set; }
Property Value
Type Description
boolGets or sets whether the row headers are rendered. Applies to every existing and future SheetView.

WorkbookLink to this section

Gets the workbook this view wraps.

Declaration
public Documents.Spreadsheet.Workbook Workbook { get; }
Property Value
Type Description
Documents.Spreadsheet.WorkbookGets the workbook this view wraps.

Methods

GetViewLink to this section

Gets or creates a SheetView for the specified sheet.

Declaration
public Spreadsheet.SheetView GetView(Documents.Spreadsheet.Worksheet sheet)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet
Returns
Type Description
Spreadsheet.SheetView

RemoveLink to this section

Removes the view for the specified sheet, freeing its undo history and rendering state.

Declaration
public bool Remove(Documents.Spreadsheet.Worksheet sheet)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙