Share via


ContentControl.XMLMapping Property (2007 System)

Gets an XMLMapping that represents the binding between the ContentControl and an element in a custom XML part.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public ReadOnly Property XMLMapping As XMLMapping
'Usage
Dim instance As ContentControl 
Dim value As XMLMapping 

value = instance.XMLMapping
public XMLMapping XMLMapping { get; }
public:
property XMLMapping^ XMLMapping {
    XMLMapping^ get ();
}
public function get XMLMapping () : XMLMapping

Property Value

Type: XMLMapping
An XMLMapping that represents the binding between the ContentControl and an element in a custom XML part.

Exceptions

Exception Condition
COMException

The Type property has the value wdContentControlBuildingBlockGallery, wdContentControlGroup or wdContentControlRichText.

Remarks

Use the XMLMapping property to bind a ContentControl 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.

You cannot bind building block gallery controls, group controls, and rich text controls to custom XML parts.

.NET Framework Security

See Also

Reference

ContentControl Class

ContentControl Members

Microsoft.Office.Tools.Word Namespace

Other Resources

Content Controls

Custom XML Parts Overview

Walkthrough: Binding Content Controls to Custom XML Parts