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.
Object
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class InsertRowCommand : Spreadsheet.ICommand, Spreadsheet.IProtectedCommandInitializes a new instance of the InsertRowCommand class.
public InsertRowCommand(Documents.Spreadsheet.Worksheet sheet, int rowIndex)
| 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. |
public Spreadsheet.SpreadsheetFeature? Feature { get; }
| Type | Description |
|---|---|
| Spreadsheet.SpreadsheetFeature? |
public Documents.Spreadsheet.SheetAction RequiredAction { get; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.SheetAction |