Partager via


CommandBarComboBoxClass.List Property

Gets or sets the item in the list at the specified index.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Declaration
Public Overridable Property List ( _
    Index As Integer _
) As String
public virtual string this[
    int Index
] { get; set; }
public:
virtual property String^ List[[InAttribute] int Index] {
    String^ get ([InAttribute] int Index);
    void set ([InAttribute] int Index, String^ value);
}
abstract List : 
        Index:int -> string with get, set 
override List : 
        Index:int -> string with get, set
JScript does not support indexed properties.

Parameters

  • Index
    Type: Int32

    The (0-based) index in the list.

Property Value

Type: String
The get accessor of this property returns the item at the (0-based) index location.

Implements

_CommandBarComboBox.List

Remarks

The set accessor is deprecated, and throws a DeprecatedException.

.NET Framework Security

See Also

Reference

CommandBarComboBoxClass Class

Microsoft.VisualStudio.CommandBars Namespace