Visual Basic: Windows Controls
A Tabs collection contains a collection of Tab objects.
The Tabs collection syntax has these parts:
|tabstrip||An object expression that evaluates to a TabStrip control.|
|index||An integer or string that uniquely identifies a member of an object collection. The integer is the value of the Index property of the desired Tab object; the string is the value of the Key property of the desired Tab object.|
At design time, use the Insert Tab and Remove Tab buttons on the Tabs tab in the Properties Page of the TabStrip control to add and remove Tab objects from the Tabs collection.
The Tabs collection uses the Count property to return the number of tabs in the collection. To manipulate the Tab objects in the Tabs collection, use these methods at run time:
- Add adds Tab objects to the TabStrip control.
- Item retrieves the Tab identified by its Key or Index from the collection.
- Clear removes all Tab objects from the collection.
- Remove removes the Tab identified by its Key or Index from the collection.