ContentControlBase::StoreUpdating Event
Occurs just before Microsoft Office Word updates data in a custom XML part that is bound to the content control (that is, after the text in the content control changes).
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
You can bind content controls to an element in a piece of XML (also named custom XML part) that is embedded in the document. For more information, see Content Controls and Custom XML Parts Overview.
The StoreUpdating event is raised when the text in a content control changes, and the content control is bound to an element in a custom XML part.
The following code example demonstrates event handlers for the StoreUpdating and ContentUpdating events. This example assumes that the document contains a PlainTextContentControl named plainTextContentControl1 that is bound to an element in a custom XML part. For a code example that demonstrates how to bind a content control to an element in a custom XML part, see Walkthrough: Binding Content Controls to Custom XML Parts.
To use this code, paste it into the ThisDocument class in your project. For C#, you must also attach the event handlers to the StoreUpdating and ContentUpdating events of plainTextContentControl1.