DeleteColumnsCommand Class

Command that deletes a contiguous range of columns and supports undo by re-inserting blank columns and restoring the cells that were captured before deletion.

Inheritance

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class DeleteColumnsCommand : Spreadsheet.DeleteRangeCommandBase, Spreadsheet.ICommand, Spreadsheet.IProtectedCommand

Constructors

DeleteColumnsCommandlink

Initializes a new instance of the DeleteColumnsCommand class.

Declaration
public DeleteColumnsCommand(Documents.Spreadsheet.Worksheet sheet, int startColumnIndex, int endColumnIndex)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet The worksheet to modify.
int startColumnIndex The first column index to delete (inclusive).
int endColumnIndex The last column index to delete (inclusive).

Properties

RequiredActionlink

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

Methods

DeleteRangelink

Declaration
protected override void DeleteRange()

IsInsideRangelink

Declaration
protected override bool IsInsideRange(Documents.Spreadsheet.CellRef address)
Parameters
Type Name Description
Documents.Spreadsheet.CellRef address
Returns
Type Description
bool

ReferencesRangelink

Declaration
protected override bool ReferencesRange(Documents.Spreadsheet.Cell cell)
Parameters
Type Name Description
Documents.Spreadsheet.Cell cell
Returns
Type Description
bool

ReinsertRangelink

Declaration
protected override void ReinsertRange()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙