Class
Tabs
ConsoleMonster.Widgets
Retained tab subtrees. Ctrl+PageUp/PageDown and header clicks switch tabs; only the active subtree is mounted.
Inheritance
- object
- Tabs
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Method Ui.Tabs
- Extension method Tabs.SelectedIndex
- Method Tabs.Add
- Method TabsFluent.SelectedIndex
Accepted by parameters 4
- Method ContentBuilder.Tabs
- Method ContentBuilder.Tabs
- Extension method Tabs.SelectedIndex
- Method TabsFluent.SelectedIndex
Constructors
public Tabs() #Methods
public Tabs Add(string label, IWidget content) #Adds a tab; its key is also its visible label.
Parameters
- label string
- content ConsoleMonster.Layout.IWidget
Returns
Tabspublic Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
Properties
Extension Methods
public static Tabs SelectedIndex(Tabs tabs, int value) #Sets Tabs.SelectedIndex: The active tab index.
Parameters
- tabs ConsoleMonster.Widgets.Tabs
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.Tabs { SelectedIndex = value }; Ui.Tabs().SelectedIndex(value);