HypernovaDesktop Components · docs
Binarymission
WinForms › Power Tab Strip › BinaryPowerTabPageCollectionBase

BinaryPowerTabPageCollectionBase

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TabControls

The base of BinaryPowerTabPageCollection, raising an event before and after each change to the collection.

public class BinaryPowerTabPageCollectionBase<BinaryPowerTabPage> : CollectionBase

Inherits from / implements: CollectionBase

Remarks

Work with the strip's pages through BinaryPowerTabPageCollection (BinaryPowerTabStrip.TabPages); this class is not meant to be used on its own. Note that BinaryPowerTabPageCollection overrides some of these methods without calling them, so on the strip's collection Clearing and Inserted are not raised; use BinaryPowerTabPageCollection.CollectionChanged instead.

Members at a glance

Constructors
BinaryPowerTabPageCollectionBaseCreates an empty collection.
Methods
IndexOfGets the position of a page in the collection.
OnClearRaises the Clearing event, before the collection is emptied.
OnClearCompleteRaises the Cleared event, after the collection has been emptied.
OnInsertRaises the Inserting event, before a page is added.
OnInsertCompleteRaises the Inserted event, after a page has been added.
OnRemoveRaises the Removing event, before a page is taken out.
OnRemoveCompleteRaises the Removed event, after a page has been taken out.
Events
ClearedOccurs after the collection has been emptied.
ClearingOccurs before the collection is emptied.
InsertedOccurs after a page has been added to the collection.
InsertingOccurs before a page is added to the collection.
RemovedOccurs after a page has been taken out of the collection.
RemovingOccurs before a page is taken out of the collection.

Constructors

BinaryPowerTabPageCollectionBase

public BinaryPowerTabPageCollectionBase()

Creates an empty collection.

Methods

IndexOf

protected int IndexOf(object value)

Gets the position of a page in the collection.

Parameters
value
The page to look for.
Returns

Its zero-based index, or -1 if it is not in the collection.

OnClear

protected override void OnClear()

Raises the Clearing event, before the collection is emptied.

OnClearComplete

protected override void OnClearComplete()

Raises the Cleared event, after the collection has been emptied.

OnInsert

protected override void OnInsert(int index, object value)

Raises the Inserting event, before a page is added.

Parameters
index
Where the page will go.
value
The page.

OnInsertComplete

protected override void OnInsertComplete(int index, object value)

Raises the Inserted event, after a page has been added.

Parameters
index
Where the page went.
value
The page.

OnRemove

protected override void OnRemove(int index, object value)

Raises the Removing event, before a page is taken out.

Parameters
index
Where the page is.
value
The page.

OnRemoveComplete

protected override void OnRemoveComplete(int index, object value)

Raises the Removed event, after a page has been taken out.

Parameters
index
Where the page was.
value
The page.

Events

Cleared

public event TabPagesCollectionClearHandler Cleared

Occurs after the collection has been emptied.

Clearing

public event TabPagesCollectionClearHandler Clearing

Occurs before the collection is emptied.

Inserted

public event TabPagesCollectionChangeHandler Inserted

Occurs after a page has been added to the collection.

Inserting

public event TabPagesCollectionChangeHandler Inserting

Occurs before a page is added to the collection.

Removed

public event TabPagesCollectionChangeHandler Removed

Occurs after a page has been taken out of the collection.

Removing

public event TabPagesCollectionChangeHandler Removing

Occurs before a page is taken out of the collection.