Edytuj

Udostępnij za pośrednictwem


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
type ContentControls = interface
    interface 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

Returns an _Application object that represents the Microsoft Word application.

Count

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

Creator

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

Item[Object]

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

Parent

Returns the parent object of the ContentControls object.

Methods

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()

Applies to