简体   繁体   中英

C# PowerPoint VSTO UndoRecord like in Word

Microsoft Word has the concept of an UndoRecord which allows you to start and end a custom UndoRecord .

Unfortunately, it does not look like PowerPoint's Application object has the same property.

Question : how can you manage the undo/redo state in a PowerPoint VSTO application?

The use case is that I am performing a number of steps within the slide, which I want to bundle into one undo/redo step.

In PowerPoint, you have _Application.StartNewUndoEntry

link to msdn

Just call the method every time you want to add an entry in the undo stack. You have no control over the name of the entry, or anything else for that matter...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM