How do I undo programmatically?

G

GBPA

Hi all,

I have a Powerpoint 2007 C# addin that inserts some text, and soon, a
picture, into the selection point in a PPT presentation. The insertion
simplified is as such:

<select some text in PPT>
powerPointSelection = powerPointApplicationObject.ActiveWindow.Selection;
<put some stuff in clipboard>
powerPointSelection.TextRange.Paste();

I would like to provide an undo capability but can't find an undo method.
Can someone please provide a pointer to the class that contains a suitable
undo method or a couple of lines of code to show how I can undo from my C#
program?

Much obliged!

Gabe
 
Top