InsertRowCommand Class

Command that inserts a single row at the specified index. Undo deletes the inserted row and restores the original formulas of any cells whose references were shifted by Execute — Worksheet.DeleteRow only invalidates references pointing at the deleted (empty) row, so it cannot reverse the shift on its own.

Inheritance

Object

Spreadsheet.InsertRowCommand

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class InsertRowCommand : Spreadsheet.ICommand, Spreadsheet.IProtectedCommand

Constructors

InsertRowCommandLink to this section

Initializes a new instance of the InsertRowCommand class.

Declaration
public InsertRowCommand(Documents.Spreadsheet.Worksheet sheet, int rowIndex)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet The worksheet to modify.
int rowIndex The 0-based index at which to insert the new row. Pass index + 1 for "insert after" semantics.

Properties

FeatureLink to this section

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

RequiredActionLink to this section

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

Methods

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 🗙