ContentControls ContentControls ContentControls Interface

Definition

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
[System.Runtime.InteropServices.Guid("804CD967-F83B-432D-9446-C61A45CFEFF0")]
public interface ContentControls : System.Collections.IEnumerable
Public Interface ContentControls
Implements IEnumerable
Attributes
Implements

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

Properties

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.

Methods

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