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 to this section

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 to this section

The range of cells being modified.

Declaration
protected readonly Documents.Spreadsheet.RangeRef range

sheetLink to this section

The sheet being operated on.

Declaration
protected readonly Documents.Spreadsheet.Worksheet sheet

Properties

FeatureLink to this section

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

Methods

ApplyFormatLink to this section

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 to this section

Declaration
public bool Execute()
Returns
Type Description
bool

UnexecuteLink to this section

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