ViewFacts
ConsoleMonster.Widgets
The line under a default view that sums it up: 22 folders · 10 files · 117 KB. Values are presented like table cells (sizes, durations, dates), a sparkline or bar value draws inline, and lines break only between facts.
Inheritance
- object
- ViewFacts
Usage
Explore 12 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 6
- Method Ui.Facts
- Extension method ViewFacts.AddFact
- Extension method ViewFacts.AddFacts
- Method ViewFacts.Add
- Method WidgetsFluent.AddFact
- Method WidgetsFluent.AddFacts
Accepted by parameters 6
- Method ContentBuilder.Facts
- Method ContentBuilder.Facts
- Extension method ViewFacts.AddFact
- Extension method ViewFacts.AddFacts
- Method WidgetsFluent.AddFact
- Method WidgetsFluent.AddFacts
Constructors
public ViewFacts(IEnumerable<ViewFact> facts) #Creates the line from facts.
Parameters
- facts System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.ViewFact>
Methods
public ViewFacts Add(ViewFact fact) #Adds a complete fact descriptor.
Parameters
- fact ConsoleMonster.Widgets.ViewFact
- The fact.
public ViewFacts Add(object? value, string? label = null, ThemeToken? role = null) #Adds a value and its literal label, with an optional semantic colour.
Parameters
- value object?
- The value, presented like a table cell.
- label string? = null
- The literal word after the value.
- role ConsoleMonster.Styling.ThemeToken? = null
- The semantic colour; null draws a neutral fact.
public 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 ViewFacts AddFact(ViewFacts viewFacts, ViewFact item) #Adds an item to ViewFacts.Facts: The facts in display order.
Parameters
- viewFacts ConsoleMonster.Widgets.ViewFacts
- The instance.
- item ConsoleMonster.Widgets.ViewFact
- The item.
public static ViewFacts AddFacts(ViewFacts viewFacts, params ViewFact[] items) #Adds items to ViewFacts.Facts: The facts in display order.
Parameters
- viewFacts ConsoleMonster.Widgets.ViewFacts
- The instance.
- items ConsoleMonster.Widgets.ViewFact[]
- The items, in order.
public static ViewFacts AddFacts(ViewFacts viewFacts, IEnumerable<ViewFact> items) #Adds items to ViewFacts.Facts: The facts in display order.
Parameters
- viewFacts ConsoleMonster.Widgets.ViewFacts
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.ViewFact>
- The items, in order.