FactFlow
ConsoleMonster.Widgets
Flows facts at separators without breaking a fact into unrelated words.
Inheritance
- object
- FactFlow
Usage
Explore 16 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 8
- Extension method FactFlow.AddPart
- Extension method FactFlow.AddParts
- Extension method FactFlow.Role
- Extension method FactFlow.Separator
- Method FactFlowFluent.AddPart
- Method FactFlowFluent.AddParts
- Method FactFlowFluent.Role
- Method FactFlowFluent.Separator
Accepted by parameters 8
- Extension method FactFlow.AddPart
- Extension method FactFlow.AddParts
- Extension method FactFlow.Role
- Extension method FactFlow.Separator
- Method FactFlowFluent.AddPart
- Method FactFlowFluent.AddParts
- Method FactFlowFluent.Role
- Method FactFlowFluent.Separator
Constructors
Methods
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
public string? Separator { get; set; } #Optional literal separator; the default is the tier's middle dot.
Extension Methods
public static FactFlow AddPart(FactFlow factFlow, string item) #Adds an item to FactFlow.Parts: Markup facts in display order.
Parameters
- factFlow ConsoleMonster.Widgets.FactFlow
- The instance.
- item string
- The item.
public static FactFlow AddParts(FactFlow factFlow, params string[] items) #Adds items to FactFlow.Parts: Markup facts in display order.
Parameters
- factFlow ConsoleMonster.Widgets.FactFlow
- The instance.
- items string[]
- The items, in order.
public static FactFlow AddParts(FactFlow factFlow, IEnumerable<string> items) #Adds items to FactFlow.Parts: Markup facts in display order.
Parameters
- factFlow ConsoleMonster.Widgets.FactFlow
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static FactFlow Role(FactFlow factFlow, ThemeToken? value) #Sets FactFlow.Role: An optional role beneath each fact.
Parameters
- factFlow ConsoleMonster.Widgets.FactFlow
- The instance.
- value ConsoleMonster.Styling.ThemeToken?
- The value.
Examples
// C# initializer or property // C# fluent
factFlow.Role = value; factFlow.Role(value);public static FactFlow Separator(FactFlow factFlow, string? value) #Sets FactFlow.Separator: Optional literal separator; the default is the tier's middle dot.
Parameters
- factFlow ConsoleMonster.Widgets.FactFlow
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
factFlow.Separator = value; factFlow.Separator(value);