Skip to content

Commit 4a06b7e

Browse files
Merge pull request #1440 from syncfusion-content/983001-DocumentChanges5
983001: Changes in the undo/redo and worksheet files.
2 parents d93a64d + d03b1ad commit 4a06b7e

File tree

2 files changed

+52
-44
lines changed

2 files changed

+52
-44
lines changed

Document-Processing/Excel/Spreadsheet/Blazor/undo-redo.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ control: Spreadsheet
77
documentation: ug
88
---
99

10-
# Undo and Redo in Blazor Spreadsheet component
10+
# Undo and Redo in Blazor Spreadsheet Component
1111

12-
The **Undo** and **Redo** functionality in the Blazor Spreadsheet component allows users to easily reverse or reapply recent actions. It maintains a history of spreadsheet operations, encouraging experimentation with data and formatting while preserving the ability to restore previous states. All major operations are supported, including cell editing, formatting, structural changes, and data manipulation. The keyboard shortcuts - **Ctrl + Z** for Undo and **Ctrl + Y** for Redo - provide quick access without interacting with interface elements.
12+
The **Undo** and **Redo** functionality in the Blazor Spreadsheet component allows users to reverse or reapply recent actions. It maintains a history of spreadsheet operations, encouraging experimentation with data and formatting while preserving the ability to restore previous states.
13+
14+
Undo and Redo are supported for most common operations, including:
15+
* Cell editing and formatting
16+
* Structural changes (e.g., inserting or deleting rows/columns)
17+
* Data manipulation (e.g., sorting and filtering)
18+
* Resizing rows and columns
19+
20+
The keyboard shortcuts **Ctrl + Z** for Undo and **Ctrl + Y** for Redo provide quick access without requiring interaction with the user interface.
1321

1422
N> The undo and redo history is limited to **25 operations** to optimize memory usage; once this limit is reached, older actions are automatically discarded. Additionally, the history is cleared when worksheet protection is enabled.
1523

@@ -28,9 +36,9 @@ N> The **Undo** button is automatically disabled when there are no reversible op
2836

2937
The **Redo** operation reapplies an action that was previously undone, allowing end users to move forward through the operation history and restore both data and interface states. Redo actions can be performed via the user interface in the following ways:
3038

31-
* Click the **Redo** button located in the **Home** tab of the **Ribbon** to reapply the most recently undone operation.
32-
* Use the keyboard shortcut **Ctrl + Y** for quick access to redo the last undone action.
39+
* Click the **Redo** button located in the **Home** tab of the **Ribbon** to reapply the most recently undone operation.
40+
* Use the keyboard shortcut **Ctrl + Y** for quick access to redo the last undone action.
3341

3442
![UI showing redo option](./images/redo-feature.png)
3543

36-
N> The **Redo** button is automatically disabled when no actions are available to reapply or when a cell is in editing mode. Additionally, the redo history is cleared whenever a new action is performed following an undo.
44+
N> The **Redo** button is automatically disabled when no actions are available to reapply or when a cell is in edit mode. The redo history is cleared whenever a new action is performed after an undo.

Document-Processing/Excel/Spreadsheet/Blazor/worksheet.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ control: Spreadsheet
77
documentation: ug
88
---
99

10-
# Worksheet in Blazor Spreadsheet component
10+
# Worksheet Operations in Blazor Spreadsheet Component
1111

1212
A worksheet is a collection of cells organized in the form of rows and columns that allows for storing, formatting, and manipulating data. This feature supports data organization across multiple sheets, making it suitable for scenarios like managing department-wise records, financial reports, or project data in separate sheets.
1313

14-
N> If the workbook is protected, operations like inserting, deleting, renaming, hiding, unhiding, moving, or duplicating sheets are disabled through both user interface (UI) and code. To know more about workbook protection, refer [here](./protection#protect-workbook).
14+
N> If a workbook is protected, worksheet operations like inserting, deleting, renaming, hiding, unhiding, moving, or duplicating sheets are disabled through both the user interface (UI) and code. To know more about workbook protection, refer to the [Protect Workbook](./protection#protect-workbook) documentation.
1515

16-
## Insert sheet
16+
## Insert Sheet
1717

1818
The Insert sheet feature in the Syncfusion Blazor Spreadsheet component allows adding new sheets to a workbook, enabling better organization of data across multiple sheets. This feature can be accessed through user interface (UI) or programmatically, offering flexibility based on the application's requirements.
1919

20-
### Insert sheet via UI
20+
### Insert Sheet via UI
2121

2222
To add or insert a new sheet using the UI, follow these steps:
2323

24-
* Click the `+` icon button in the **Sheet** tab. This will insert a new empty sheet next to current active sheet.
25-
![Add sheet option](images/addsheet.png)
24+
* Click the `+` icon button in the **Sheet** tab. This will insert a new empty sheet next to current active sheet.
25+
![Add sheet option](images/addsheet.png)
2626

27-
* Right click on a **Sheet** tab, and then select **Insert** option from the context menu to insert a new empty sheet after the current active sheet.
28-
![Insert sheet context menu](images/insert-sheet-option.png)
27+
* Right-click on a **Sheet** tab, and then select **Insert** option from the context menu to insert a new empty sheet after the current active sheet.
28+
![Insert sheet context menu](images/insert-sheet-option.png)
2929

30-
### Insert sheet programmatically
30+
### Insert Sheet Programmatically
3131

32-
The [InsertSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertSheetAsync_System_Nullable_System_Int32__System_Int32_) method allows adding one or more sheets to a workbook using code. It supports two main scenarios: adding multiple sheets with default names or adding a single sheet with a user-defined name. Below are the details for each scenario, including code examples and parameter information.
32+
Use the [InsertSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertSheetAsync_System_Nullable_System_Int32__System_Int32_) method to add one or more sheets to a workbook programmatically. It supports two main scenarios: adding multiple sheets with default names or adding a single sheet with a user-defined name. Below are the details for each scenario, including code examples and parameter information.
3333

3434
**Insert multiple sheets at a specific index**
3535

@@ -111,29 +111,29 @@ This method adds one sheet at a specific position with a user-defined name. Each
111111
{% endhighlight %}
112112
{% endtabs %}
113113

114-
## Delete sheet
114+
## Delete Sheet
115115

116-
The Spreadsheet component supports removing sheets from a spreadsheet. When the workbook contains only one sheet, the delete option is disabled in the user interface (UI), and no action occurs during programmatic deletion attempts. Sheets can be deleted using user interface (UI) or programmatically, based on application requirements.
116+
The Spreadsheet component supports removing sheets from a workbook. When the workbook contains only one sheet, the delete option is disabled in the user interface (UI), and no action occurs during programmatic deletion attempts. Sheets can be deleted using user interface (UI) or programmatically, based on application requirements.
117117

118-
### Delete sheet via UI
118+
### Delete Sheet via UI
119119

120120
To remove a sheet using the user interface (UI), follow these steps:
121121

122-
* Right click on a **Sheet** tab, and then select **Delete** option from context menu.
122+
1. Right-click a **Sheet** tab, and then select **Delete** option from the context menu.
123123

124-
![Delete sheet option](images/delete-sheet-option.png)
124+
![Delete sheet option](images/delete-sheet-option.png)
125125

126-
* Click **OK** in the confirmation dialog to delete the sheet.
126+
2. Click **OK** in the confirmation dialog to permanently delete the sheet.
127127

128-
![Delete confirm dialog](images/delete-confirm-dialog.png)
128+
![Delete confirm dialog](images/delete-confirm-dialog.png)
129129

130-
### Delete sheet programmatically
130+
### Delete Sheet Programmatically
131131

132132
Sheets can be deleted at a specific index using the [DeleteSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DeleteSheetAsync_System_Nullable_System_Int32__) method. It supports two main scenarios: delete sheet by index or delete sheet by name. Below are the details for each scenario, including code examples and parameter information.
133133

134134
**Delete sheet by index**
135135

136-
This method removes a sheet from a specific position. It works best when the sheet location in the workbook is known, such as when removing the first or last sheet through code. If no position is specified, the current active sheet gets deleted.
136+
This method removes a sheet at a specific index. It works best when the sheet location in the workbook is known, such as when removing the first or last sheet through code. If no position is specified, the current active sheet gets deleted.
137137

138138
| Parameter | Type | Description |
139139
| -- | -- | -- |
@@ -209,21 +209,21 @@ This method removes a sheet that matches the given name. It helps when the exact
209209
{% endhighlight %}
210210
{% endtabs %}
211211

212-
## Rename sheet
212+
## Rename Sheet
213213

214-
The Rename Sheet feature allows assigning user-defined names to sheets for better organization. Sheet names must be unique within the workbook, and renaming does not affect data or formulas. This feature is essential for improving workbook clarity, especially in complex workbooks with multiple sheets.
214+
The rename sheet feature allows assigning user-defined name to a sheet for better organization. Sheet names must be unique within the workbook, and renaming does not affect data or formulas. This feature is essential for improving workbook clarity, especially in complex workbooks with multiple sheets.
215215

216216
To rename a sheet:
217217

218-
* Right-click a **Sheet** tab and select **Rename** from the context menu.
218+
1. Right-click a **Sheet** tab and select **Rename** from the context menu.
219219

220-
![Rename sheet option](images/rename-sheet-option.png)
220+
![Rename sheet option](images/rename-sheet-option.png)
221221

222-
* Enter a new name and click **update** to confirm.
222+
2. Enter a new name in the dialog and click **Update** to confirm.
223223

224-
![Rename dialog](images/rename-dialog.png)
224+
![Rename dialog](images/rename-dialog.png)
225225

226-
## Hide sheet
226+
## Hide Sheet
227227

228228
Hiding sheets in the Spreadsheet component prevents unauthorized access or accidental changes. Hidden sheets remain in the workbook, retaining all data, formulas, and functionality, but are not visible in the user interface (UI). To hide a sheet, right-click the **Sheet** tab and select **Hide** from the context menu.
229229

@@ -237,30 +237,30 @@ Hiding sheets in the Spreadsheet component prevents unauthorized access or accid
237237

238238
![Hide sheet option](images/hide-sheet-option.png)
239239

240-
## Unhide sheet
240+
### Unhide Sheet
241241

242242
The Spreadsheet component allows restoring hidden sheets to view, which appear in a disabled state within the sheet selection menu. To make a hidden sheet visible again, click on the **Sheet** tab list icon and then select the hidden sheet. Once selected, the sheet will reappear in the sheet tab collection and become available for editing.
243243

244244
![Unhide sheet option](images/unhide-sheet-option.png)
245245

246-
## Move sheet
246+
## Move Sheet
247247

248248
The Spreadsheet component allows reordering sheets by moving them to different positions within the workbook. This feature helps organize sheets in a preferred sequence for better navigation and workflow efficiency. Sheets can be moved using user interface (UI) or programmatically, based on application needs.
249249

250-
### Move sheet via UI
250+
### Move Sheet via UI
251251

252252
To move a sheet using the user interface (UI), follow these steps:
253253

254-
* Click and hold on a **Sheet** tab, then drag it to the desired position.
254+
* Click and hold on a **Sheet** tab, then drag it to the desired position.
255255

256-
* Right click on a **Sheet** tab and select **Move Left** or **Move Right** options from the context menu to reposition the sheet accordingly.
256+
* Right-click on a **Sheet** tab and select **Move Left** or **Move Right** options from the context menu to reposition the sheet accordingly.
257257

258258
N> **Move Right** is enabled only if a sheet exists to the right, and **Move Left** is enabled only if a sheet exists to the left.
259259

260260
![Move Left sheet option](images/move-left-option.png)
261261
![Move Right sheet option](images/move-right-option.png)
262262

263-
### Move sheet programmatically
263+
### Move Sheet Programmatically
264264

265265
The [MoveSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_MoveSheetAsync_System_Nullable_System_Int32__System_Int32_) method moves a sheet from one index to another programmatically. This method requires two parameters: the current zero-based index of the sheet to move and the destination zero-based index where the sheet will be placed. If either index is invalid (negative or beyond the sheet count), the method will not perform any action.
266266

@@ -300,19 +300,19 @@ The [MoveSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spr
300300
{% endhighlight %}
301301
{% endtabs %}
302302

303-
## Duplicate sheet
303+
## Duplicate Sheet
304304

305305
The Spreadsheet component allows creating an exact copy of a sheet, including all data, formatting, formulas, and styling. Duplicating a sheet is useful for creating multiple sheets with similar content or structure. The duplicated sheet is inserted immediately after the original sheet and is assigned a unique name, typically appending a number (e.g., "Sheet1" becomes "Sheet1 (2)"). Sheet duplication can be performed through user interface (UI) or programmatically, depending on application needs.
306306

307-
### Duplicate sheet via UI
307+
### Duplicate Sheet via UI
308308

309309
To duplicate a sheet using the user interface (UI), simply right-click on the desired **Sheet** tab and choose the **Duplicate** option from the context menu.
310310

311311
![Duplicate sheet option](images/duplicate-sheet-option.png)
312312

313-
### Duplicate sheet programmatically
313+
### Duplicate Sheet Programmatically
314314

315-
The [DuplicateSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DuplicateSheetAsync_System_Nullable_System_Int32__) method allows duplicating a sheet programmatically by specifying its index or name. The duplicated sheet is inserted immediately after the original sheet. Below are details for duplicating a sheet by index or by name, including parameter information and code examples.
315+
Use the [DuplicateSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DuplicateSheetAsync_System_Nullable_System_Int32__) method to duplicate a worksheet programmatically by specifying its index or name. The duplicated sheet is inserted immediately after the original sheet. Below are details for duplicating a sheet by index or by name, including parameter information and code examples.
316316

317317
**Duplicate sheet by index**
318318

@@ -359,7 +359,7 @@ This method creates a copy of the sheet with the specified name. The sheet name
359359

360360
| Parameter | Type | Description |
361361
| -- | -- | -- |
362-
| sheetName | string | The name of the sheet to duplicate. If the name does not exist, no action occurs. |
362+
| `sheetName` | `string` | The name of the sheet to duplicate. If the name does not exist, no action occurs. |
363363

364364
{% tabs %}
365365
{% highlight razor %}
@@ -384,10 +384,10 @@ This method creates a copy of the sheet with the specified name. The sheet name
384384

385385
public async Task DuplicateSheetHandler()
386386
{
387-
// Duplicate the sheet named "Sheet1".
387+
// Duplicates the sheet named "Sheet1".
388388
await SpreadsheetRef.DuplicateSheetAsync("Sheet1");
389389
}
390390
}
391391

392392
{% endhighlight %}
393-
{% endtabs %}
393+
{% endtabs %}

0 commit comments

Comments
 (0)