ContentControl.XMLMapping Property

Definition

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

public:
 property Microsoft::Office::Interop::Word::XMLMapping ^ XMLMapping { Microsoft::Office::Interop::Word::XMLMapping ^ get(); };
public Microsoft.Office.Interop.Word.XMLMapping XMLMapping { get; }
member this.XMLMapping : Microsoft.Office.Interop.Word.XMLMapping
Public ReadOnly Property XMLMapping As XMLMapping

Property Value

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

Exceptions

The Type property has the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlBuildingBlockGallery, Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlGroup or Microsoft.Office.Interop.Word.WdContentControlType.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.

Applies to