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 to this section

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 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 🗙