HypernovaDesktop Components · docs
Binarymission
WinFormsPower Tab Strip › BinaryPowerTabPageCollection

BinaryPowerTabPageCollection

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

Collection class to help manage/work with the collection of the BinaryPowerTabPage elements hosted in the BinaryPowerTabStrip class.

public class BinaryPowerTabPageCollection : BinaryPowerTabPageCollectionBase<BinaryPowerTabPage>

Inherits from / implements: BinaryPowerTabPageCollectionBase<BinaryPowerTabPage>

Members at a glance

BinaryPowerTabPageCollectionConstructs a new instance of BinaryPTabPageCollection class.
FirstVisibleTabPageGets the first visible tab page.
ItemGets or sets the BinaryPowerTabPage at the specified index.
LastButOneVisibleTabPageGets the last but one visible tab page.
LastVisibleTabPageGets the last visible tab page.
TabPagesCurrentlyVisibleGets the tab pages currently visible.
AddAdds the specified tab page item into the collection.
AddRangeAdds a range of tab pages into the collection.
AssignAssigns the specified collection into the collection. Intended for internal use.
BeginUpdateSuspends change notifications while a run of additions or removals is made. Every call must be matched by a call to EndUpdate.
ContainsDetermines whether the collection contains the specified tab page.
EndUpdateResumes change notifications suspended by BeginUpdate and, once the last one is matched, raises a single refresh for the whole run.
IndexOfReturns the index position of the given tab page item.
InsertInserts the specified tab page into the specified index position.
MoveToMoves the specified tab page item into the new index location.
OnClearCalled before the collection is emptied.
OnCollectionChangedRaises the CollectionChanged event.
OnInsertCompleteCalled once an item has been inserted into the collection.
OnRemoveCalled before an item is removed from the collection.
OnTabPageChangedForwards a change made on an individual page as a refresh of the whole collection, so the strip redraws when one of its pages changes underneath it.
RemoveRemoves the specified tab page item from the collection.
CollectionChangedOccurs when the collection changes.

Constructors

BinaryPowerTabPageCollection

public BinaryPowerTabPageCollection()

Constructs a new instance of BinaryPTabPageCollection class.

Properties

FirstVisibleTabPage

public BinaryPowerTabPage FirstVisibleTabPage

Gets the first visible tab page.

Value. The first visible tab page.

Item

public BinaryPowerTabPage this[int index]

Gets or sets the BinaryPowerTabPage at the specified index.

LastButOneVisibleTabPage

public BinaryPowerTabPage LastButOneVisibleTabPage

Gets the last but one visible tab page.

Value. The last but one visible tab page.

LastVisibleTabPage

public BinaryPowerTabPage LastVisibleTabPage

Gets the last visible tab page.

Value. The last visible tab page.

TabPagesCurrentlyVisible

public int TabPagesCurrentlyVisible

Gets the tab pages currently visible.

Value. The tab pages currently visible.

Methods

Add

public int Add(BinaryPowerTabPage tabPageItem)

Adds the specified tab page item into the collection.

AddRange

public void AddRange(BinaryPowerTabPage[] tabPageItems)

Adds a range of tab pages into the collection.

Assign

public void Assign(BinaryPowerTabPageCollection collection)

Assigns the specified collection into the collection. Intended for internal use.

BeginUpdate

protected void BeginUpdate()

Suspends change notifications while a run of additions or removals is made. Every call must be matched by a call to EndUpdate.

Contains

public bool Contains(BinaryPowerTabPage tabPageItem)

Determines whether the collection contains the specified tab page.

EndUpdate

protected void EndUpdate()

Resumes change notifications suspended by BeginUpdate and, once the last one is matched, raises a single refresh for the whole run.

IndexOf

public int IndexOf(BinaryPowerTabPage tabPageItem)

Returns the index position of the given tab page item.

Insert

public void Insert(int index, BinaryPowerTabPage tabPageItem)

Inserts the specified tab page into the specified index position.

MoveTo

public BinaryPowerTabPage MoveTo(int newIndex, BinaryPowerTabPage tabPageItem)

Moves the specified tab page item into the new index location.

OnClear

protected override void OnClear()

Called before the collection is emptied.

OnCollectionChanged

protected virtual void OnCollectionChanged(CollectionChangeEventArgs e)

Raises the CollectionChanged event.

e
The data for the event.

OnInsertComplete

protected override void OnInsertComplete(int index, object tabPageItem)

Called once an item has been inserted into the collection.

OnRemove

protected override void OnRemove(int index, object tabPageItem)

Called before an item is removed from the collection.

OnTabPageChanged

protected virtual void OnTabPageChanged(object sender, EventArgs e)

Forwards a change made on an individual page as a refresh of the whole collection, so the strip redraws when one of its pages changes underneath it.

sender
The page that changed.
e
Not used.

Remove

public void Remove(BinaryPowerTabPage tabPageItem)

Removes the specified tab page item from the collection.

tabPageItem
The tabPageItem.

Events

CollectionChanged

public event CollectionChangeEventHandler CollectionChanged

Occurs when the collection changes.