Partager via


ControlFormat.List Property

Returns or sets the text entries in the specified list box or a combo box, as an array of strings, or returns or sets a single text entry. An error occurs if there are no entries in the list.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property List ( _
    Index As Object _
) As Object
    Get
'Usage
Dim instance As ControlFormat
Dim Index As Object
Dim value As Object

value = instance.List(Index)
Object this[
    Object Index
] { get; }

Parameters

  • Index
    Type: System.Object

    Optional Object. The index number of a single text entry to be set or returned. If this argument is omitted, the entire list is returned or set as an array of strings.

Property Value

Type: System.Object

Remarks

Setting this property clears any range specified by the ListFillRange property.

See Also

Reference

ControlFormat Interface

ControlFormat Members

Microsoft.Office.Interop.Excel Namespace