Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Property DropDownListEntries As ContentControlListEntries
'Usage
Dim instance As ContentControl
Dim value As ContentControlListEntries
value = instance.DropDownListEntries
public ContentControlListEntries DropDownListEntries { get; }
public:
property ContentControlListEntries^ DropDownListEntries {
ContentControlListEntries^ get ();
}
public function get DropDownListEntries () : ContentControlListEntries
Property Value
Type: ContentControlListEntries
A ContentControlListEntries object that contains the items that are displayed by the ContentControl.
Exceptions
Exception | Condition |
---|---|
COMException | The Type property does not have the value wdContentControlComboBox or 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.