편집

다음을 통해 공유


ContentControlListEntries Interface

Definition

The ContentControlListEntries collection contains ContentControlListEntry objects that represent the items in a drop-down list or combo box content control.

public interface class ContentControlListEntries : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("54F46DC4-F6A6-48CC-BD66-46C1DDEADD22")]
public interface ContentControlListEntries : System.Collections.IEnumerable
type ContentControlListEntries = interface
    interface IEnumerable
Public Interface ContentControlListEntries
Implements IEnumerable
Attributes
Implements

Remarks

Use the Add(String, String, Int32) method to add an item to a drop-down list or combo box.

Use the Item[Int32] method or the DropdownListEntries property of a ContentControl object to access an individual list item within a collection.

Use the Clear() method to remove all items from a drop-down list or combo box. The following example clears all items from the first content control in the active document.

Properties

Application

Returns an _Application object that represents the Microsoft Word application.

Count

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

Creator

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

Item[Int32]

Returns the specified item in the collection.

Parent

Returns the parent object of the specified ContentControlListEntries object.

Methods

Add(String, String, Int32)

Adds a new list item to a drop-down list or combo box content control and returns a ContentControlListEntry object.

Clear()

Clears all items from a drop-down list or combo box content control.

GetEnumerator()

Applies to