TabLabels

public sealed class TabLabels
Collection of TabLabel with active tab management.

Properties

ActiveIndex

#
Gets or sets the active tab. Usually this field is assigned as a response to user mouseclicks on the control.
public int ActiveIndex { get; set; }

ActiveTab

#
Gets or sets the active tab.
public TabLabel ActiveTab { get; set; }

HasActive

#
Test whether this collection has a valid active tab.
public bool HasActive { get; }

IsEmpty

#
Gets whether this collection is empty.
public bool IsEmpty { get; }

LeftToRight

#
Enumerate over all tabs from left to right.
public IEnumerable<TabLabel> LeftToRight { get; }

LeftToRightUpToActive

#
Enumerate over all tabs from left to right up to but not including the active tab.
public IEnumerable<TabLabel> LeftToRightUpToActive { get; }

RightToLeft

#
Enumerate over all tabs from right to left.
public IEnumerable<TabLabel> RightToLeft { get; }

RightToLeftUpToActive

#
Enumerate over all tabs from right to left up to but not including the active tab.
public IEnumerable<TabLabel> RightToLeftUpToActive { get; }

TotalWidth

#
Gets the total width of all the tab labels.
public float TotalWidth { get; }

ToTheLeftOfActive

#
Enumerate over all tabs to the left of the active tab, going from right to left.
public IEnumerable<TabLabel> ToTheLeftOfActive { get; }

ToTheRightOfActive

#
Enumerate over all tabs to the right of the active tab, going from left to right.
public IEnumerable<TabLabel> ToTheRightOfActive { get; }

Methods

Activate

#
Activate the tab matching the given chapter.
public bool Activate()
True if a different tab is now active.

Activate

#
Activate the tab under the given coordinate.
public bool Activate(
PointF
point
)
True if a different tab is now active.

EnsureActive

#
Ensures that there's a valid active tab, provided there's at least one tab in this collection.
public void EnsureActive()

IsActive

#
Test whether a specific label is the active one.
public bool IsActive()