Class InsertCutCopiedShiftCellsDownCommand
Represents a class that which perform cut/copy and shift cells down operations.
Implements
System.Windows.Input.ICommand
Inherited Members
Namespace: Syncfusion.UI.Xaml.Spreadsheet.Commands
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class InsertCutCopiedShiftCellsDownCommand : InsertCommand, ICommand
Constructors
InsertCutCopiedShiftCellsDownCommand(SfSpreadsheet, String)
Initializes a new instance of InsertCutCopiedShiftCellsDownCommand.
Declaration
public InsertCutCopiedShiftCellsDownCommand(SfSpreadsheet sfSpreadsheet, string commandName)
Parameters
Type | Name | Description |
---|---|---|
SfSpreadsheet | sfSpreadsheet | The SfSpreadsheet Control. |
System.String | commandName | The name of the command. |
Methods
OnCanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public override bool OnCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The parameter used by the InsertCutCopiedShiftCellsRightCommand. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if this command can be executed; otherwise, false. |
Overrides
OnExecute(Object)
Defines the method to be called when the command is invoked.
Declaration
protected override void OnExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The parameter used by the InsertCutCopiedShiftCellsRightCommand. |
Overrides
Implements
System.Windows.Input.ICommand