Document.ContentControlBeforeDelete Event (2007 System)
Occurs just before a content control is deleted from the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Event ContentControlBeforeDelete As DocumentEvents2_ContentControlBeforeDeleteEventHandler
'Usage
Dim instance As Document
Dim handler As DocumentEvents2_ContentControlBeforeDeleteEventHandler
AddHandler instance.ContentControlBeforeDelete, handler
public event DocumentEvents2_ContentControlBeforeDeleteEventHandler ContentControlBeforeDelete
public:
event DocumentEvents2_ContentControlBeforeDeleteEventHandler^ ContentControlBeforeDelete {
void add (DocumentEvents2_ContentControlBeforeDeleteEventHandler^ value);
void remove (DocumentEvents2_ContentControlBeforeDeleteEventHandler^ value);
}
JScript does not support events.
Remarks
For more information about handling events, see Consuming Events.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.