Profile Picture

NDrawingDocument Undo not reverting the Tag.

Posted By Steve Warner 14 Years Ago
Author
Message
Steve Warner
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 15, Visits: 1
I have an event that changes the Tag associated with my NDrawingDocument, but when I undo the Event it doesn't revert the Tag to it's previous state. Is there something I am missing?

I ask because I have Shapes that are utilizing this behavior properly using the NShape.Drawing.StartTransaction/HistoryService.Commit paradigm.

Is there something I should be doing differently?

Here is my code snippet.


_form.document.StartTransaction("UpdateFormatProperties");
_form.document.Tag = object.Clone();
//Do some other stuff to the document.
_form.document.HistoryService.Commit();




Similar Topics


Reading This Topic