CodeViewFluent
ConsoleMonster.Widgets
The fluent methods of CodeView, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- CodeViewFluent
Methods
public static CodeView FirstLine(CodeView codeView, int value) #Sets CodeView.FirstLine: The number of the first line (default 1), for excerpts.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
codeView.FirstLine = value; codeView.FirstLine(value);public static CodeView IndentationGuides(CodeView codeView, bool value = true) #Sets CodeView.IndentationGuides: Shows scope or indentation guides in the leading whitespace.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
codeView.IndentationGuides = value; codeView.IndentationGuides(value);public static CodeView LineNumbers(CodeView codeView, bool value = true) #Sets CodeView.LineNumbers: Shows line numbers.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
codeView.LineNumbers = value; codeView.LineNumbers(value);public static CodeView MaxLines(CodeView codeView, int value) #Sets CodeView.MaxLines: The most lines shown (default 2000); the rest are counted.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
codeView.MaxLines = value; codeView.MaxLines(value);public static CodeView Structure(CodeView codeView, CodeStructure? value) #Sets CodeView.Structure: Optional syntax ranges for the original source. Indentation provides a fallback.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value ConsoleMonster.Widgets.CodeStructure?
- The value.
Examples
// C# initializer or property // C# fluent
codeView.Structure = value; codeView.Structure(value);public static CodeView Title(CodeView codeView, string? value) #Sets CodeView.Title: A title (a file name) drawn on a panel around the code, or null for no panel.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
codeView.Title = value; codeView.Title(value);public static CodeView Wrap(CodeView codeView, bool value = true) #Sets CodeView.Wrap: Wraps long lines instead of truncating them.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
codeView.Wrap = value; codeView.Wrap(value);