BinaryPowerTabPageCollectionBase
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 | |
|---|---|
BinaryPowerTabPageCollectionBase | Creates an empty collection. |
| Methods | |
IndexOf | Gets the position of a page in the collection. |
OnClear | Raises the Clearing event, before the collection is emptied. |
OnClearComplete | Raises the Cleared event, after the collection has been emptied. |
OnInsert | Raises the Inserting event, before a page is added. |
OnInsertComplete | Raises the Inserted event, after a page has been added. |
OnRemove | Raises the Removing event, before a page is taken out. |
OnRemoveComplete | Raises the Removed event, after a page has been taken out. |
| Events | |
Cleared | Occurs after the collection has been emptied. |
Clearing | Occurs before the collection is emptied. |
Inserted | Occurs after a page has been added to the collection. |
Inserting | Occurs before a page is added to the collection. |
Removed | Occurs after a page has been taken out of the collection. |
Removing | Occurs before a page is taken out of the collection. |
Constructors
BinaryPowerTabPageCollectionBase
Creates an empty collection.
Methods
IndexOf
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
Raises the Clearing event, before the collection is emptied.
OnClearComplete
Raises the Cleared event, after the collection has been emptied.
OnInsert
Raises the Inserting event, before a page is added.
Parameters
index- Where the page will go.
value- The page.
OnInsertComplete
Raises the Inserted event, after a page has been added.
Parameters
index- Where the page went.
value- The page.
OnRemove
Raises the Removing event, before a page is taken out.
Parameters
index- Where the page is.
value- The page.
OnRemoveComplete
Raises the Removed event, after a page has been taken out.
Parameters
index- Where the page was.
value- The page.
Events
Cleared
Occurs after the collection has been emptied.
Clearing
Occurs before the collection is emptied.
Inserted
Occurs after a page has been added to the collection.
Inserting
Occurs before a page is added to the collection.
Removed
Occurs after a page has been taken out of the collection.
Removing
Occurs before a page is taken out of the collection.