Class UndoRedoStateChangedEventArgs
Provides data for the UndoRedoStateChanged event.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class UndoRedoStateChangedEventArgs
Remarks
Use these properties to determine the current undo and redo availability, identify the affected action, and obtain information about the operation that triggered the event.
Constructors
UndoRedoStateChangedEventArgs()
Declaration
public UndoRedoStateChangedEventArgs()
Properties
Action
Gets the action that triggered the undo/redo state change.
Declaration
public UndoRedoAction Action { get; }
Property Value
| Type | Description |
|---|---|
| UndoRedoAction | An UndoRedoAction value indicating whether the action was an Undo, Redo, Record, or Reset. |
Remarks
This property identifies the action that triggered the event.
ActionDescription
Gets the description of the user-visible action associated with the operation.
Declaration
public string ActionDescription { get; }
Property Value
| Type | Description |
|---|---|
| string | A string describing the action, such as Sort, Cut, Paste, Delete, Insert, or Format. |
Remarks
This property contains only user-visible action descriptions and does not expose internal workbook operations.
Address
Gets the address of the cell range affected by the operation.
Declaration
public string Address { get; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the worksheet name and affected range in the format "Sheet1!A1:B10". Returns an empty string when the operation is not associated with a specific cell range. |
Remarks
This property provides the address associated with the affected operation. The address can be empty for structure-related operations such as inserting or deleting rows and columns, image resize operations, reset operations, or other actions that are not associated with a specific cell range.
RedoCount
Gets the number of user-visible logical actions currently available for redo.
Declaration
public int RedoCount { get; }
Property Value
| Type | Description |
|---|---|
| int | An int representing the number of actions that can be redone. The value is 0 when no redo operations are available. |
Remarks
This value represents logical user actions and excludes internal workbook support operations.
UndoCount
Gets the number of user-visible logical actions currently available for undo.
Declaration
public int UndoCount { get; }
Property Value
| Type | Description |
|---|---|
| int | An int representing the number of actions that can be undone. The value is 0 when no undo operations are available. |
Remarks
This value represents logical user actions and excludes internal workbook support operations.