Event arguments passed to RadzenSpreadsheet's CommandExecuting callback. The handler may call PreventDefault to veto the command before it is pushed onto the undo stack.
Object
EventArgs
EventArgs.Empty
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SpreadsheetCommandEventArgs : EventArgsInitializes a new instance of SpreadsheetCommandEventArgs.
public SpreadsheetCommandEventArgs(Spreadsheet.ICommand command)
| Type | Name | Description |
|---|---|---|
| Spreadsheet.ICommand | command |
The command about to be executed.
public Spreadsheet.ICommand Command { get; }
| Type | Description |
|---|---|
| Spreadsheet.ICommand | The command about to be executed. |
Returns true once PreventDefault has been called.
public bool DefaultPrevented { get; }
| Type | Description |
|---|---|
| bool | Returns true once PreventDefault has been called. |
Prevents the command from running. The host's Execute will return false. Must be called synchronously from the handler — async handlers that only call this after an await will not gate the command.
public void PreventDefault()