Dela via


ContentControl.DropDownListEntries Property

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
ReadOnly Property DropDownListEntries As ContentControlListEntries
ContentControlListEntries DropDownListEntries { get; }

Property Value

Type: Microsoft.Office.Interop.Word.ContentControlListEntries
The items that are displayed by the ContentControl.

Exceptions

Exception Condition
COMException

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.

.NET Framework Security

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace