Share via


ContentControl.DropDownListEntries Property

Definition

Gets the collection of items that are displayed by a ContentControl that represents a drop-down list or a combo box.

public:
 property Microsoft::Office::Interop::Word::ContentControlListEntries ^ DropDownListEntries { Microsoft::Office::Interop::Word::ContentControlListEntries ^ get(); };
public Microsoft.Office.Interop.Word.ContentControlListEntries DropDownListEntries { get; }
member this.DropDownListEntries : Microsoft.Office.Interop.Word.ContentControlListEntries
Public ReadOnly Property DropDownListEntries As ContentControlListEntries

Property Value

The items that are displayed by the ContentControl.

Exceptions

The Type property does not have the value Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlComboBox or Microsoft.Office.Interop.Word.WdContentControlType.wdContentControlDropdownList.

Remarks

This property can be used only if the ContentControl represents a drop-down list or a combo box.

When you create a ContentControl that represents a drop-down list or a combo box, it contains no items by default. To add items, use the Add method of the DropDownListEntries property.

Applies to