DeleteRowsCommand Class

Command that deletes a contiguous range of rows and supports undo by re-inserting blank rows and restoring the cells that were captured before deletion.

Inheritance

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class DeleteRowsCommand : Spreadsheet.DeleteRangeCommandBase, Spreadsheet.ICommand, Spreadsheet.IProtectedCommand

Constructors

DeleteRowsCommandlink

Initializes a new instance of the DeleteRowsCommand class.

Declaration
public DeleteRowsCommand(Documents.Spreadsheet.Worksheet sheet, int startRowIndex, int endRowIndex)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet The worksheet to modify.
int startRowIndex The first row index to delete (inclusive).
int endRowIndex The last row index to delete (inclusive).

Properties

RequiredActionlink

Declaration
public Documents.Spreadsheet.SheetAction RequiredAction { get; }
Property Value

Methods

DeleteRangelink

Declaration
protected override void DeleteRange()

IsInsideRangelink

Declaration
protected override bool IsInsideRange(Documents.Spreadsheet.CellRef address)
Parameters
Type Name Description
Documents.Spreadsheet.CellRef address
Returns
Type Description
bool

ReferencesRangelink

Declaration
protected override bool ReferencesRange(Documents.Spreadsheet.Cell cell)
Parameters
Type Name Description
Documents.Spreadsheet.Cell cell
Returns
Type Description
bool

ReinsertRangelink

Declaration
protected override void ReinsertRange()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙