WebToolbar.ItemCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aWebToolbar.ItemCount

Supported for all project types and targets.

The number of items in the toolbar.

Example

This code disables all the buttons on a toolbar:

For i As Integer = 0 To Toolbar1.ItemCount - 1
WebToolbarButton(Toolbar1.ItemAtIndex(i)).Enabled = False
Next