none
PowerPoint AddIn: Prevent a creation of undo item RRS feed

  • Question

  • Sorry for my English :)

    While working in VSTO PowerPoint AddIn I executed follow statement

    // presentation is Microsoft.Office.Interop.PowerPoint.Presentation instance
    presentation.Slides[1].FollowMasterBackground = MsoTriState.msoFalse;
    //...

    That creates item in Undo list. Is there any way to prevent that - prevent create undo-item for this action?

    Friday, April 13, 2018 6:35 AM

Answers

  • Hi adamShakhabov,

    In other Office Applications, There are 2 methods for adding and removing the items in undo stack.

    In PowerPoint, There is just one method "StartNewUndoEntry Method".

    So whenever, you want to reset it, you can try to call this method.

    Note that, it will work for all the operations that you perform in presentation.

    Reference:

    _Application.StartNewUndoEntry Method

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by adamShakhabov Monday, April 16, 2018 4:25 PM
    Monday, April 16, 2018 8:10 AM
    Moderator