How to Get the Undo/Redo Description?
29 Feb 2016 / 1 minute to read
The HistoryManager class has an option to get undo or redo description. You can use the GetUndoDescriptions or RedoDescriptions method to get the desired depth of descriptions available in the history of undo or redo list, respectively. The following code example illustrates this.
string[] strDescriptions;
int nDescWanted = 1;
//Gets an undo description from the undo list.
int nDescReturned = diagram1.Model.HistoryManager.GetUndoDescriptions(nDescWanted, out strDescriptions);
//Gets a redo description from the redo list.
nDescReturned = diagram1.Model.HistoryManager.GetRedoDescriptions(nDescWanted, out strDescriptions);
Dim strDescriptions() As String
Dim nDescWanted As Integer = 1
'Gets an undo description from the undo list.
Dim nDescReturned As Integer = diagram1.Model.HistoryManager.GetUndoDescriptions(nDescWanted, strDescriptions)
'Gets a redo description from the redo list.
nDescReturned = diagram1.Model.HistoryManager.GetRedoDescriptions(nDescWanted, strDescriptions)
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page