API Reference
HelpView
A command's help (HelpTopic): the name and synopsis, the syntax of each parameter set with the parameters, types and optional parts told apart, the description, a parameter table (type, required, position, pipeline input, default, description), the examples with highlighted code, inputs, outputs, notes and related links. Everything is printed as it grows, so it reads well through a pager. Show-ConsoleHelp is the PowerShell face.
Inheritance
- Object
- HelpView
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
- Extension method HelpView.WithShowExamples
- Extension method HelpView.WithShowParameters
- Extension method HelpView.WithTopic
- Method HelpViewFluent.WithShowExamples
- Method HelpViewFluent.WithShowParameters
- Method HelpViewFluent.WithTopic
Accepted by parameters 6
- Extension method HelpView.WithShowExamples
- Extension method HelpView.WithShowParameters
- Extension method HelpView.WithTopic
- Method HelpViewFluent.WithShowExamples
- Method HelpViewFluent.WithShowParameters
- Method HelpViewFluent.WithTopic
Constructors
public HelpView(HelpTopic topic) #Creates the view.
Parameters
- topic ConsoleMonster.Help.HelpTopic
- The help.
Methods
public Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #VoidRenders 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
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
Extension Methods
public static HelpView WithShowExamples(HelpView helpView, Boolean value = true) #HelpViewSets HelpView.ShowExamples: Whether the examples are shown (default true).
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static HelpView WithShowParameters(HelpView helpView, Boolean value = true) #HelpViewSets HelpView.ShowParameters: Whether the parameter table is shown (default true).
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static HelpView WithTopic(HelpView helpView, Action<HelpTopic> configure) #HelpViewConfigures HelpView.Topic in place: The help shown.
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- configure System.Action<ConsoleMonster.Help.HelpTopic>
- Configures the value.
Returns
The same instance.