Command that inserts a single column at the specified index. Undo deletes the inserted column and restores the original formulas of any cells whose references were shifted by Execute — Worksheet.DeleteColumn only invalidates references pointing at the deleted (empty) column, so it cannot reverse the shift on its own.
Object
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class InsertColumnCommand : Spreadsheet.ICommand, Spreadsheet.IProtectedCommandInitializes a new instance of the InsertColumnCommand class.
public InsertColumnCommand(Documents.Spreadsheet.Worksheet sheet, int columnIndex)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | The worksheet to modify. |
| int | columnIndex | The 0-based index at which to insert the new column. 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 |