Partilhar via


TopIndex Property

Specifies the item that appears in the top-most position in a list. Not available at design time; read-no write at run time.

Control.TopIndex[ = nIndex]

Property Values

  • nIndex
    Specifies the index of the item that appears in the top-most position in a list.

Remarks

The index of an item reflects its position in the list, which is relative to other items in the list and can change.

Run time writes have no effect. For combobox controls, TopIndex is read-only at run time.

See Also

AddItem Method | Clear Method | List Property | ListCount Property | MultiSelect Property | NewItemID Property | RemoveItem Method | Selected Property | TopItemID Property

Applies To: ComboBox | ListBox