TabControl.TabPageCollection

Wisej.Web.TabControl TabPageCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Contains a collection of TabPage objects.

public class TabPageCollection : IList, ICollection, IEnumerable, IList<TabPage>, ICollection<TabPage>, IEnumerable<TabPage>

Properties

Int32: Returns the number of tab pages in the collection.

TabPage: Returns or sets a TabPage in the collection at the specified index.

Throws:

TabPage: Returns the TabPage with the specified key from the collection.

Methods

Adds a TabPage to the collection.

ParameterTypeDescription

tabPage

The TabPage to add.

Throws:

Creates a TabPage with the specified text, and adds it to the collection.

ParameterTypeDescription

text

The text to display on the TabPage.

Creates a TabPage with the specified key and text and adds it to the collection.

ParameterTypeDescription

key

The name of the TabPage.

text

The text to display on the TabPage.

Creates a TabPage with the specified key, text, and image, and adds it to the collection.

ParameterTypeDescription

key

The name of the TabPage.

text

The text to display on the TabPage.

imageIndex

The index of the image to display on the TabPage.

Creates a TabPage with the specified key, text, and image, and adds it to the collection.

ParameterTypeDescription

key

The name of the TabPage.

text

The text to display on the TabPage.

imageKey

The key of the image to display on the TabPage.

Adds a set of TabPage pages to the collection.

ParameterTypeDescription

pages

An array of type TabPage that contains the TabPage pages to add.

Throws:

Removes all the TabPage pages from the collection.

Removes and disposes all TabPage pages from the collection.

ParameterTypeDescription

dispose

Indicates whether to dispose the TabPage pages removed from the collection.

Determines whether a specified TabPage is in the collection.

ParameterTypeDescription

tabPage

The TabPage to locate in the collection.

Returns: Boolean. true if the specified TabPage is in the collection; otherwise, false.

Throws:

Determines whether the collection contains a TabPage with the specified key.

ParameterTypeDescription

key

The name of the TabPage page to search for.

Returns: Boolean. true to indicate a TabPage page with the specified key was found in the collection; otherwise, false.

Copies the TabPage pages in the collection to the specified array, starting at the specified index.

ParameterTypeDescription

array

The one-dimensional array that is the destination of the tab pages copied from the collection. The array must have zero-based indexing.

index

The zero-based index in the array at which copying begins.

Throws:

Returns the index of the TabPage in the collection.

ParameterTypeDescription

tabPage

The TabPage to locate in the collection.

Returns: Int32. The zero-based index of the tab page; -1 if it cannot be found.

Throws:

Returns the index of the first occurrence of the TabPage with the specified key.

ParameterTypeDescription

key

The name of the TabPage to find in the collection.

Returns: Int32. The zero-based index of the first occurrence of a TabPage with the specified key, if found; otherwise, -1.

Inserts an existing TabPage into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index location where the TabPage page is inserted.

tabPage

The TabPage to insert in the collection.

Creates a new TabPage with the specified text and inserts it into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index location where the TabPage page is inserted.

text

The text to display in the TabPage page.

Creates a new TabPage with the specified key and text, and inserts it into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index location where the TabPage is inserted.

key

The name of the TabPage.

text

The text to display on the TabPage.

Creates a new TabPage with the specified key, text, and image, and inserts it into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index location where the TabPage is inserted

key

The name of the tab page.

text

The text to display on the TabPage.

imageIndex

The zero-based index of the image to display on the TabPage.

Creates a TabPage with the specified key, text, and image, and inserts it into the collection at the specified index.

ParameterTypeDescription

index

The zero-based index location where the TabPage is inserted.

key

The name of the tab page.

text

The text to display on the TabPage.

imageKey

The key of the image to display on the TabPage.

Removes the TabPage from the collection.

ParameterTypeDescription

tabPage

The TabPage to remove.

Throws:

Removes the TabPage at the specified index from the collection.

ParameterTypeDescription

index

The zero-based index of the TabPage to remove.

Removes the TabPage with the specified key from the collection.

ParameterTypeDescription

key

The name of the TabPage page to remove.

Last updated