Exposes some of the methods of the RadzenSpreadsheet component.
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public interface ISpreadsheetGets whether there is a command to redo.
public bool CanRedo { get; }
| Type | Description |
|---|---|
| bool | Gets whether there is a command to redo. |
Gets whether there is a command to undo.
public bool CanUndo { get; }
| Type | Description |
|---|---|
| bool | Gets whether there is a command to undo. |
Gets whether the spreadsheet is in read-only mode. When true, every mutation is rejected regardless of per-feature Allow* flags.
public bool ReadOnly { get; }
| Type | Description |
|---|---|
| bool | Gets whether the spreadsheet is in read-only mode. When true, every mutation is rejected regardless of per-feature Allow* flags. |
Gets the UI culture used for localized strings. Defaults to CurrentUICulture.
public Globalization.CultureInfo UICulture { get; }
| Type | Description |
|---|---|
| Globalization.CultureInfo | Gets the UI culture used for localized strings. Defaults to CurrentUICulture. |
Accepts the current edit in the spreadsheet.
public abstract Task<bool> AcceptAsync()
| Type | Description |
|---|---|
| Task<bool> |
Executes a command through the active view's undo/redo stack. Returns true when the command ran, false when it was rejected by read-only mode, an Allow* flag, sheet protection, or a CommandExecuting handler that called PreventDefault().
public abstract Task<bool> ExecuteAsync(Spreadsheet.ICommand command)
| Type | Name | Description |
|---|---|---|
| Spreadsheet.ICommand | command |
| Type | Description |
|---|---|
| Task<bool> |
Returns true when the given feature is enabled on the host RadzenSpreadsheet. Tools should use this to decide whether they should appear disabled.
public abstract bool IsFeatureAllowed(Spreadsheet.SpreadsheetFeature feature)
| Type | Name | Description |
|---|---|---|
| Spreadsheet.SpreadsheetFeature | feature | The feature to check. |
| Type | Description |
|---|---|
| bool |
Replaces the displayed workbook, resets the active sheet and cached view, and raises WorkbookChanged. Used by the Open tool so it works in any toolbar.
public abstract Task LoadWorkbookAsync(Documents.Spreadsheet.Workbook workbook)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Workbook | workbook | The workbook to display. |
| Type | Description |
|---|---|
| Task |
Returns a localized string for the specified key.
public abstract string Localize(string key)
| Type | Name | Description |
|---|---|---|
| string | key | The resource key. |
| Type | Description |
|---|---|
| string | The localized string. |
Redoes the last undone command.
public abstract void Redo()