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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top