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

Initializes a new instance of the WorkbookView class.

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

Properties

Workbooklink

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

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

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 🗙