Skip to content
ConsoleMonster

API Reference

Class

CodeViewFluent

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

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: CodeView

Sets CodeView.FirstLine: The number of the first line (default 1), for excerpts.

Parameters

codeView ConsoleMonster.Widgets.CodeView requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static CodeView WithLineNumbers(CodeView codeView, Boolean value = true) #
Returns: CodeView

Sets CodeView.LineNumbers: Shows line numbers.

Parameters

codeView ConsoleMonster.Widgets.CodeView requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static CodeView WithMaxLines(CodeView codeView, Int32 value) #
Returns: CodeView

Sets CodeView.MaxLines: The most lines shown (default 2000); the rest are counted.

Parameters

codeView ConsoleMonster.Widgets.CodeView requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static CodeView WithTitle(CodeView codeView, String? value) #
Returns: CodeView

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 requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.

public static CodeView WithWrap(CodeView codeView, Boolean value = true) #
Returns: CodeView

Sets CodeView.Wrap: Wraps long lines instead of truncating them.

Parameters

codeView ConsoleMonster.Widgets.CodeView requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.