Add (Tabs)
This method adds a Tab object to the Tabs collection of a TabStrip control.
Syntax
tabs.Add([index], [key], [caption], [image])
Parameters
- tabs
- Required. Name of a Tabs collection.
- index
- Optional. Integer that specifies the position to insert the Tab. If you do not specify an index, Add appends the Tab to the end of the Tabs collection.
- key
- Optional. Unique string expression that can be used to access a member of the Tabs collection.
- caption
- Optional. Text string for the Caption property of the new Tab.
- image
- Optional. Integer that sets the icon to be displayed from the ImageList control associated with the TabStrip.
Return Value
Reference to the new Tab object.
Remarks
Use the Key property to reference a member of the Tabs collection if you expect the value of an object's Index property to change.