PathSet
ConsoleMonster.Widgets
Several labelled chains from one origin, wrapping at arrows and optionally marking shared hop identities.
Inheritance
- object
- PathSet
Usage
Explore 25 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 13
- Extension method PathSet.CompactBranches
- Extension method PathSet.HighlightSharedHops
- Extension method PathSet.MaxHops
- Extension method PathSet.MaxPaths
- Extension method PathSet.Origin
- Extension method PathSet.Title
- Method PathSet.Add
- Method PathSetFluent.CompactBranches
- Method PathSetFluent.HighlightSharedHops
- Method PathSetFluent.MaxHops
- Method PathSetFluent.MaxPaths
- Method PathSetFluent.Origin
- Method PathSetFluent.Title
Accepted by parameters 12
- Extension method PathSet.CompactBranches
- Extension method PathSet.HighlightSharedHops
- Extension method PathSet.MaxHops
- Extension method PathSet.MaxPaths
- Extension method PathSet.Origin
- Extension method PathSet.Title
- Method PathSetFluent.CompactBranches
- Method PathSetFluent.HighlightSharedHops
- Method PathSetFluent.MaxHops
- Method PathSetFluent.MaxPaths
- Method PathSetFluent.Origin
- Method PathSetFluent.Title
Constructors
public PathSet(PathHop origin) #Creates a set of paths from one origin.
Parameters
- origin ConsoleMonster.Widgets.PathHop
- The common origin, automatically prepended to each added chain.
Methods
public PathSet Add(params PathHop[] hops) #Adds the hops after the origin in one chain, preserving repeated hops and input order.
Parameters
- hops ConsoleMonster.Widgets.PathHop[]
- The hops after the common origin.
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 bool CompactBranches { get; set; } #Show the origin once and use compact branching chains with four-cell hanging continuations.
public int MaxPaths { get; set; } #The most chains rendered (default 10; zero shows all); omitted chains are counted.
public int MaxHops { get; set; } #The maximum accepted hops per chain, excluding the origin (default 100).
Extension Methods
public static PathSet CompactBranches(PathSet pathSet, bool value) #Sets PathSet.CompactBranches: Show the origin once and use compact branching chains with four-cell hanging continuations.
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
pathSet.CompactBranches = value; pathSet.CompactBranches(value);public static PathSet CompactBranches(PathSet pathSet) #Sets PathSet.CompactBranches to true.
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance to configure.
public static PathSet MaxHops(PathSet pathSet, int value) #Sets PathSet.MaxHops: The maximum accepted hops per chain, excluding the origin (default 100).
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
pathSet.MaxHops = value; pathSet.MaxHops(value);public static PathSet MaxPaths(PathSet pathSet, int value) #Sets PathSet.MaxPaths: The most chains rendered (default 10; zero shows all); omitted chains are counted.
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
pathSet.MaxPaths = value; pathSet.MaxPaths(value);public static PathSet Origin(PathSet pathSet, Action<PathHop> configure) #Configures PathSet.Origin in place: The common origin.
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance.
- configure System.Action<ConsoleMonster.Widgets.PathHop>
- Configures the value.
public static PathSet Title(PathSet pathSet, string? value) #Sets PathSet.Title: An optional markup title.
Parameters
- pathSet ConsoleMonster.Widgets.PathSet
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
pathSet.Title = value; pathSet.Title(value);