Partager via


ContentControls Interface

A collection of ContentControl objects. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Individual content controls may contain content such as dates, lists, or paragraphs of formatted text.

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

Syntax

'Declaration
<GuidAttribute("804CD967-F83B-432D-9446-C61A45CFEFF0")> _
Public Interface ContentControls _
    Inherits IEnumerable
'Usage
Dim instance As ContentControls
[GuidAttribute("804CD967-F83B-432D-9446-C61A45CFEFF0")]
public interface ContentControls : IEnumerable

Remarks

Use the Add(WdContentControlType, Object%) method to create a new content control and insert it into a document.

Use the Item[Object%] method to access a specific content control in the collection. Use the ContentControl object to work with individual content controls. For more information, see Working with Content Controls.

See Also

Reference

ContentControls Members

Microsoft.Office.Interop.Word Namespace