How to update content control properties (C#) with track in Undo l

A

Anita

Hello all,
I am creating Content Control using Developer Tab (Insert Rich
Text Box). Then I select this insert richTextBox and update its Tag and Title
properties using Properties button on developer tab.

Now, in the Undo list (present in Quick Access toolbar) I can see 2
actions, namely associated:
Placeholder Properties
Create Content Control

Now, when I add a content control using following code:

MSword.ContentControl richTextBox =
applicationObject.Selection.ContentControls.
Add(MSword.WdContentControlType.wdContentControlRichText, ref rangeObject);

richTextBox.Title = “Some Titleâ€;
richTextBox.Tag = “Some Tagâ€;

I can just see following action in Undo List:
Create Content Control

Is there some other way of adding properties for a content control,
so that Word keeps its track in Undo list…?

Thanks,
Anita
 

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