Share via


NumberOfElements Property

Specifies how many items in an array are used to fill the list portion of a ComboBox or ListBox control. Available at design time and run time.

 [Form.]Control.NumberOfElements[ = nTotal]

Property Values

  • nTotal
    Specifies the number of elements that a list can contain.

Remarks

Available only when the ListSourceType property is set to 5 (Array) and the ColumnCount property is set to 1.

NumberOfElements is useful to limit the number of elements in an array that are displayed in a list. The number of elements used for the list begins with the FirstElement property setting and includes the number of elements specified in the NumberOfElements property setting.

See Also

FirstElement Property

Applies To: ComboBox | ListBox