Export (0) Print
Expand All

XMLMapping.Delete Method

Office 2007
Deletes the XML mapping from the parent content control.

Syntax

expression.Delete

expression   An expression that returns an XMLMapping object.

Remarks

This operation removes the XML mapping. Both the XML data and the content control remain in the document.

Example

The following example deletes the XML mapping for all content controls in the active document that are currently mapped.

Visual Basic for Applications
Dim objCC As ContentControl

For Each objCC In ActiveDocument.ContentControls
    If objCC.XMLMapping.IsMapped Then
        objCC.XMLMapping.Delete
    End If
Next



Community Additions

ADD
Show:
© 2014 Microsoft