TabLayout

public sealed class TabLayout
An ordered collection of TabGroup and TabLabel instances created during a TabControl layout cycle.

Properties

Elements

#
public IEnumerable<object> Elements { get; }
Enumerate over all elements in this collection.

Groups

#
public IEnumerable<TabGroup> Groups { get; }
Enumerate over all groups in this collection.

IsEmpty

#
public bool IsEmpty { get; }
Gets whether the layout is currently empty.

Labels

#
public IEnumerable<TabLabel> Labels { get; }
Enumerate over all labels in this collection.

Methods

Add

#
public void Add(TabGroup group)
Add a group to this collection.
group (TabGroup)

Add

#
public void Add(TabLabel label)
Add a label to this collection.
label (TabLabel)

Clear

#
public void Clear()
Clear all labels and groups.

DrawActiveTabShape

#
public void DrawActiveTabShape(Context context, TabLabel tab, RectangleF content)
Draw the shape of the active tab.
context (Context)
tab (TabLabel)
content (RectangleF)

DrawLabelsAndGroups

#
public void DrawLabelsAndGroups(Context context)
Draw the labels, groups and active tab slab.
context (Context)