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.
Object
Spreadsheet.RangeSnapshotCommandBase
Spreadsheet.DeleteRangeCommandBase
Spreadsheet.DeleteRangeCommandBase.DoExecute
Spreadsheet.DeleteRangeCommandBase.Unexecute
Spreadsheet.DeleteRangeCommandBase.Count
Spreadsheet.DeleteRangeCommandBase.startIndex
Spreadsheet.DeleteRangeCommandBase.endIndex
Spreadsheet.RangeSnapshotCommandBase.Capture
Spreadsheet.RangeSnapshotCommandBase.CaptureRange
Spreadsheet.RangeSnapshotCommandBase.RestoreSnapshot
Spreadsheet.RangeSnapshotCommandBase.Restore
Spreadsheet.RangeSnapshotCommandBase.Execute
Spreadsheet.RangeSnapshotCommandBase.Feature
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class DeleteColumnsCommand : Spreadsheet.DeleteRangeCommandBase, Spreadsheet.ICommand, Spreadsheet.IProtectedCommandInitializes a new instance of the DeleteColumnsCommand class.
public DeleteColumnsCommand(Documents.Spreadsheet.Worksheet sheet, int startColumnIndex, int endColumnIndex)
| 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). |
public Documents.Spreadsheet.SheetAction RequiredAction { get; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.SheetAction |
protected override bool IsInsideRange(Documents.Spreadsheet.CellRef address)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.CellRef | address |
| Type | Description |
|---|---|
| bool |
protected override bool ReferencesRange(Documents.Spreadsheet.Cell cell)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Cell | cell |
| Type | Description |
|---|---|
| bool |