ICommand Interface

Represents a command that can be executed, undone, and redone.

Namespace: Radzen.Blazor.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public interface ICommand

Properties

Featurelink

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).

Declaration
public Spreadsheet.SpreadsheetFeature? Feature { get; }
Property Value
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).

Methods

Executelink

Executes the command. Returns true if the command was successfully executed, false otherwise.

Declaration
public abstract bool Execute()
Returns
Type Description
bool

Unexecutelink

Unexecutes the command, reverting any changes made by the Execute method.

Declaration
public abstract void Unexecute()
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙