Add Method (String, String)
Collapse the table of content
Expand the table of content

TabControl.TabPageCollection.Add Method (String, String)

 

Creates a tab page with the specified text and key, and adds it to the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Add(
	string key,
	string text
)

Parameters

key
Type: System.String

The name of the tab page.

text
Type: System.String

The text to display on the tab page.

The Name property corresponds to the key for a TabPage in the TabControl.TabPageCollection.

The newly created TabPage is added to the end of the collection.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft