ContentControls ContentControls 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.

public interface class ContentControls : System::Collections::IEnumerable
public interface ContentControls : System.Collections.IEnumerable
Public Interface ContentControls
Implements IEnumerable


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


Application Application Application

Returns an _Application object that represents the Microsoft Word application.

Count Count Count

Returns the number of items in the ContentControls collection. Read-only.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the add-in was created. Read-only.

Item[Object] Item[Object] Item[Object]

Returns the specified content control within the collection of content controls in a document.

Parent Parent Parent

Returns the parent object of the ContentControls object.


Add(WdContentControlType, Object) Add(WdContentControlType, Object) Add(WdContentControlType, Object)

Adds a new content control, of the type specified, into the active document and returns a ContentControl object that represents the new content control.

GetEnumerator() GetEnumerator() GetEnumerator()

Applies to