Base class for commands that modify the format of cells in a range, with snapshot/restore for undo.
Object
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public abstract class RangeFormatCommandBase : Spreadsheet.ICommandBase class for commands that modify the format of cells in a range, with snapshot/restore for undo.
protected RangeFormatCommandBase(Documents.Spreadsheet.Worksheet sheet, Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | |
| Documents.Spreadsheet.RangeRef | range |
public Spreadsheet.SpreadsheetFeature? Feature { get; }
| Type | Description |
|---|---|
| Spreadsheet.SpreadsheetFeature? |
Returns the new format for the given cell. Called once per cell during Execute.
protected abstract Documents.Spreadsheet.Format ApplyFormat(Documents.Spreadsheet.Format current, Documents.Spreadsheet.CellRef cellRef)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Format | current | |
| Documents.Spreadsheet.CellRef | cellRef |
| Type | Description |
|---|---|
| Documents.Spreadsheet.Format |