HistoryInsertCommand Class
Class which holds memory transaction history of Insert Command.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Spreadsheet.History
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class HistoryInsertCommand : HistoryCommand
Constructors
HistoryInsertCommand(IRange, Spreadsheet)
Initializes a new instance of the HistoryInsertCommand class.
Declaration
public HistoryInsertCommand(IRange range, Spreadsheet sfSpreadsheet)
Parameters
| Type | Name | Description |
|---|---|---|
| IRange | range | Specified excel range. |
| Spreadsheet | sfSpreadsheet | An instance of Spreadsheet. |
HistoryInsertCommand(IRange, Spreadsheet, GridRangeInfoType)
Initializes a new instance of the HistoryInsertCommand class.
Declaration
public HistoryInsertCommand(IRange range, Spreadsheet sfSpreadsheet, GridRangeInfoType rangeType)
Parameters
| Type | Name | Description |
|---|---|---|
| IRange | range | Specified excel range. |
| Spreadsheet | sfSpreadsheet | An instance of Spreadsheet. |
| GridRangeInfoType | rangeType | Type of grid range either rows, cols or table,etc., |
Methods
Execute(CommandMode)
Executes the transaction command in Spreadsheet.
Declaration
public override void Execute(CommandMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandMode | mode | Holds the current process in SfSpreadsheet(either undo or redo). |