Represents a command that can be executed, undone, and redone.
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public interface ICommandGets the feature this command belongs to, or null if it is not subject to host-level feature gating (RadzenSpreadsheet's ReadOnly and Allow* parameters).
public Spreadsheet.SpreadsheetFeature? Feature { get; }
| Type | Description |
|---|---|
| Spreadsheet.SpreadsheetFeature? | Gets the feature this command belongs to, or null if it is not subject to host-level feature gating (RadzenSpreadsheet's ReadOnly and Allow* parameters). |
Executes the command. Returns true if the command was successfully executed, false otherwise.
public abstract bool Execute()
| Type | Description |
|---|---|
| bool |
Unexecutes the command, reverting any changes made by the Execute method.
public abstract void Unexecute()