Share via


ContentControl.Delete Method

Deletes the specified content control and the contents of the content control.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub Delete ( _
    DeleteContents As Boolean _
)
'Usage
Dim instance As ContentControl
Dim DeleteContents As Boolean

instance.Delete(DeleteContents)
void Delete(
    bool DeleteContents
)

Parameters

  • DeleteContents
    Type: System.Boolean
    Specifies whether to delete the contents of the content control. True removes both the content control and its contents. False removes the control but leaves the contents of the content control in the active document. The default value is False.

See Also

Reference

ContentControl Interface

ContentControl Members

Microsoft.Office.Interop.Word Namespace