HeaderPane
Main
Hide
Share Link
Print

Add Method, TabCollectionClass Class

Adds a new tab.

Class: TabCollectionClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public TabClass Add();
public TabClass Add( string text );
public int Add( TabClass tab );
public TabClass Add(
    string text,
    Image image );
Public Function Add() As TabClass
Public Function Add( ByVal text As String ) As TabClass
Public Function Add( ByVal tab As TabClass ) As Integer
Public Function Add(
    ByVal text As String,
    ByVal image As Image
  ) As TabClass

Parameters

text

The tab's text.

tab

The tab.

image

The tab's image.

Return Value

The new tab. When a TabClass object created by the application is added (tab parameter), the position of the new tab.

Comments

Adds a new tab.

The tab is added after the last tab of the collection. It is created without text, with the given text, or with the given text and image; a TabClass object created by the application can be added instead. The TabCollectionClass.Insert method adds a tab at a given position.

If the control has a client area (SftTabs.ClientArea property), the tab receives its own page (TabClass.Page property).

See Also TabCollectionClass Class | Classes | SftTabs/NET 3.0