API Reference
Class
CodeViewFluent
The fluent methods of CodeView, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- CodeViewFluent
Methods
public static CodeView WithFirstLine(CodeView codeView, Int32 value) #Returns:
CodeViewSets CodeView.FirstLine: The number of the first line (default 1), for excerpts.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static CodeView WithLineNumbers(CodeView codeView, Boolean value = true) #Returns:
CodeViewSets CodeView.LineNumbers: Shows line numbers.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static CodeView WithMaxLines(CodeView codeView, Int32 value) #Returns:
CodeViewSets CodeView.MaxLines: The most lines shown (default 2000); the rest are counted.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value System.Int32
- The value.
Returns
The same instance.
public static CodeView WithTitle(CodeView codeView, String? value) #Returns:
CodeViewSets 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 System.String?
- The value.
Returns
The same instance.
public static CodeView WithWrap(CodeView codeView, Boolean value = true) #Returns:
CodeViewSets CodeView.Wrap: Wraps long lines instead of truncating them.
Parameters
- codeView ConsoleMonster.Widgets.CodeView
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?