Skip to main content
Version: 3.5

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

Instance memberCount

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

Instance memberItem(index)

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

Throws:

Instance memberItem(name)

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

Methods

Instance memberAdd(tabPage)

Adds a TabPage to the collection.

ParameterTypeDescription
tabPageTabPageThe TabPage to add.

Throws:

Instance memberAdd(text)

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

ParameterTypeDescription
textStringThe text to display on the TabPage.

Instance memberAdd(key, text)

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

ParameterTypeDescription
keyStringThe name of the TabPage.
textStringThe text to display on the TabPage.

Instance memberAdd(key, text, imageIndex)

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

ParameterTypeDescription
keyStringThe name of the TabPage.
textStringThe text to display on the TabPage.
imageIndexInt32The index of the image to display on the TabPage.

Instance memberAdd(key, text, imageKey)

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

ParameterTypeDescription
keyStringThe name of the TabPage.
textStringThe text to display on the TabPage.
imageKeyStringThe key of the image to display on the TabPage.

Instance memberAddRange(pages)

Adds a set of TabPage pages to the collection.

ParameterTypeDescription
pagesTabPage[]An array of type TabPage that contains the TabPage pages to add.

Throws:

Instance memberClear()

Removes all the TabPage pages from the collection.

Instance memberClear(dispose)

Removes and disposes all TabPage pages from the collection.

ParameterTypeDescription
disposeBooleanIndicates whether to dispose the TabPage pages removed from the collection.

Instance memberContains(tabPage)

Determines whether a specified TabPage is in the collection.

ParameterTypeDescription
tabPageTabPageThe TabPage to locate in the collection.

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

Throws:

Instance memberContainsKey(key)

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

ParameterTypeDescription
keyStringThe 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.

Instance memberCopyTo(array, index)

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

ParameterTypeDescription
arrayTabPage[]The one-dimensional array that is the destination of the tab pages copied from the collection. The array must have zero-based indexing.
indexInt32The zero-based index in the array at which copying begins.

Throws:

Instance memberIndexOf(tabPage)

Returns the index of the TabPage in the collection.

ParameterTypeDescription
tabPageTabPageThe TabPage to locate in the collection.

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

Throws:

Instance memberIndexOfKey(key)

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

ParameterTypeDescription
keyStringThe 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.

Instance memberInsert(index, tabPage)

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

ParameterTypeDescription
indexInt32The zero-based index location where the TabPage page is inserted.
tabPageTabPageThe TabPage to insert in the collection.

Instance memberInsert(index, text)

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

ParameterTypeDescription
indexInt32The zero-based index location where the TabPage page is inserted.
textStringThe text to display in the TabPage page.

Instance memberInsert(index, key, text)

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

ParameterTypeDescription
indexInt32The zero-based index location where the TabPage is inserted.
keyStringThe name of the TabPage.
textStringThe text to display on the TabPage.

Instance memberInsert(index, key, text, imageIndex)

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

ParameterTypeDescription
indexInt32The zero-based index location where the TabPage is inserted
keyStringThe name of the tab page.
textStringThe text to display on the TabPage.
imageIndexInt32The zero-based index of the image to display on the TabPage.

Instance memberInsert(index, key, text, imageKey)

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

ParameterTypeDescription
indexInt32The zero-based index location where the TabPage is inserted.
keyStringThe name of the tab page.
textStringThe text to display on the TabPage.
imageKeyStringThe key of the image to display on the TabPage.

Instance memberRemove(tabPage)

Removes the TabPage from the collection.

ParameterTypeDescription
tabPageTabPageThe TabPage to remove.

Throws:

Instance memberRemoveAt(index)

Removes the TabPage at the specified index from the collection.

ParameterTypeDescription
indexInt32The zero-based index of the TabPage to remove.

Instance memberRemoveByKey(key)

Removes the TabPage with the specified key from the collection.

ParameterTypeDescription
keyStringThe name of the TabPage page to remove.