ContentControlListEntries ContentControlListEntries 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
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 Application Application

Returns an _Application object that represents the Microsoft Word application.

Count Count Count

Returns the number of items in the ContentControlListEntries 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[Int32] Item[Int32] Item[Int32]

Returns the specified item in the collection.

Parent Parent Parent

Returns the parent object of the specified ContentControlListEntries object.

Methods

Add(String, String, Int32) Add(String, String, Int32) 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() Clear() Clear()

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

GetEnumerator() GetEnumerator() GetEnumerator()

Applies to