RangeFormatCommandBase Class

Base class for commands that modify the format of cells in a range, with snapshot/restore for undo.

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public abstract class RangeFormatCommandBase : Spreadsheet.ICommand

Constructors

RangeFormatCommandBaselink

Base class for commands that modify the format of cells in a range, with snapshot/restore for undo.

Declaration
protected RangeFormatCommandBase(Documents.Spreadsheet.Worksheet sheet, Documents.Spreadsheet.RangeRef range)
Parameters

Fields

rangelink

The range of cells being modified.

Declaration
protected readonly Documents.Spreadsheet.RangeRef range

sheetlink

The sheet being operated on.

Declaration
protected readonly Documents.Spreadsheet.Worksheet sheet

Properties

Featurelink

Declaration
public Spreadsheet.SpreadsheetFeature? Feature { get; }
Property Value
Type Description
Spreadsheet.SpreadsheetFeature?

Methods

ApplyFormatlink

Returns the new format for the given cell. Called once per cell during Execute.

Declaration
protected abstract Documents.Spreadsheet.Format ApplyFormat(Documents.Spreadsheet.Format current, Documents.Spreadsheet.CellRef cellRef)
Parameters
Type Name Description
Documents.Spreadsheet.Format current
Documents.Spreadsheet.CellRef cellRef
Returns

Executelink

Declaration
public bool Execute()
Returns
Type Description
bool

Unexecutelink

Declaration
public void Unexecute()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙