Skip to content

Commit 76bff78

Browse files
Update README.md
1 parent 23ce38a commit 76bff78

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# How to discard all changes
1+
# How to Discard all the Changes in WPF Spreadsheet?
22

3-
This sample explains how to undo and redo all the unsaved changes in [WPF Spreadsheet](https://www.syncfusion.com/wpf-controls/spreadsheet).
3+
This sample explains how to undo and redo all the unsaved changes in [WPF Spreadsheet](https://www.syncfusion.com/wpf-controls/spreadsheet) (SfSpreadsheet).
44

5-
By default, all the unsaved changes are maintained in the `UndoStack` commands collection. To discard all the unsaved changes programmatically, `Execute` the all commands in `UndoStack` collection. By executing the commands in `RedoStack` commands collection, all the discarded changes can be retrieved.
5+
By default, all the unsaved changes are maintained in the **UndoStack** commands collection. To discard all the unsaved changes programmatically, **Execute** the all commands in **UndoStack** collection. By executing the commands in **RedoStack** commands collection, all the discarded changes can be retrieved.
66

77
``` c#
88
//UndoAll the changes
@@ -24,4 +24,4 @@ while (this.spreadsheetControl.HistoryManager.RedoStack.Count > 0)
2424
redo.Execute(Syncfusion.UI.Xaml.Spreadsheet.History.CommandMode.Redo);
2525
}
2626
}
27-
```
27+
```

0 commit comments

Comments
 (0)