TabControl::TabPageCollection::Add Method (String^, String^, String^)
.NET Framework (current version)
Creates a tab page with the specified key, text, and image, and adds it to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The name of the tab page.
- text
-
Type:
System::String^
The text to display on the tab page.
- imageKey
-
Type:
System::String^
The key of the image to display on the tab page.
The Name property corresponds to the key for a TabPage in the TabControl::TabPageCollection.
The imageKey parameter refers to an image in the ImageList property of the TabControl.
The newly created TabPage is added to the end of the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: