HelpView
ConsoleMonster.Widgets
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.ShowExamples
- Extension method HelpView.ShowParameters
- Extension method HelpView.Topic
- Method HelpViewFluent.ShowExamples
- Method HelpViewFluent.ShowParameters
- Method HelpViewFluent.Topic
Accepted by parameters 6
- Extension method HelpView.ShowExamples
- Extension method HelpView.ShowParameters
- Extension method HelpView.Topic
- Method HelpViewFluent.ShowExamples
- Method HelpViewFluent.ShowParameters
- Method HelpViewFluent.Topic
Constructors
public HelpView(HelpTopic topic) #Creates the view.
Parameters
- topic ConsoleMonster.Help.HelpTopic
- The help.
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
Extension Methods
public static HelpView ShowExamples(HelpView helpView, bool value = true) #Sets HelpView.ShowExamples: Whether the examples are shown (default true).
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpView.ShowExamples = value; helpView.ShowExamples(value);public static HelpView ShowParameters(HelpView helpView, bool value = true) #Sets HelpView.ShowParameters: Whether the parameter table is shown (default true).
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpView.ShowParameters = value; helpView.ShowParameters(value);public static HelpView Topic(HelpView helpView, Action<HelpTopic> configure) #Configures HelpView.Topic in place: The help shown.
Parameters
- helpView ConsoleMonster.Widgets.HelpView
- The instance.
- configure System.Action<ConsoleMonster.Help.HelpTopic>
- Configures the value.