I have 2 shapes: A and B in a PowerPoint.Slide. I used this tutorial to catch shape events including removing or creating shapes.
When I got notified about deleting shape A, I will delete shape B at the same time. PowerPoint will understand deleting shape A, and deleting shape B are 2 separate actions. Therefore, after undo, the shape B will be shown, but not the shape A. However, I want the shape A will be shown as well. How can I do that?
I experiment by deleting shape A, and shape B programmatically at once:
shapeA.delete(); shapeB.delete();
and now if I undo, PowerPoint will recover 2 shapes A and B for me. It's what I need.