InsertColumnCommand Class

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.

Inheritance

Object

Spreadsheet.InsertColumnCommand

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class InsertColumnCommand : Spreadsheet.ICommand, Spreadsheet.IProtectedCommand

Constructors

InsertColumnCommandlink

Initializes a new instance of the InsertColumnCommand class.

Declaration
public InsertColumnCommand(Documents.Spreadsheet.Worksheet sheet, int columnIndex)
Parameters
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.

Properties

Featurelink

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

RequiredActionlink

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

Methods

Executelink

Declaration
public bool Execute()
Returns
Type Description
bool

Unexecutelink

Declaration
public void Unexecute()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙