Skip to content
ConsoleMonster
Class

TextDiffOptionsFluent

ConsoleMonster.Changes

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

The fluent methods of TextDiffOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • TextDiffOptionsFluent

Methods

public static TextDiffOptions Context(TextDiffOptions textDiffOptions, int value) #

Sets TextDiffOptions.Context: Unchanged lines retained on each side of a change (default three). Must be nonnegative.

Parameters

textDiffOptions ConsoleMonster.Changes.TextDiffOptions required
The instance.
value int required
The value.

Returns

TextDiffOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { Context = value };    Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().Context(value);
public static TextDiffOptions DifferenceLabel(TextDiffOptions textDiffOptions, string value) #

Sets TextDiffOptions.DifferenceLabel: The plain new-text label in the widget and unified header (default After).

Parameters

textDiffOptions ConsoleMonster.Changes.TextDiffOptions required
The instance.
value string required
The value.

Returns

TextDiffOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { DifferenceLabel = value };    Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().DifferenceLabel(value);
IgnoreWhitespace 2 overloads
public static TextDiffOptions IgnoreWhitespace(TextDiffOptions textDiffOptions, bool value) #

Sets TextDiffOptions.IgnoreWhitespace: Ignores Unicode whitespace within lines. Line boundaries and a missing final newline still matter.

Parameters

textDiffOptions ConsoleMonster.Changes.TextDiffOptions required
The instance.
value bool required
The value.

Returns

TextDiffOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { IgnoreWhitespace = value };    Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().IgnoreWhitespace(value);
public static TextDiffOptions IgnoreWhitespace(TextDiffOptions textDiffOptions) #

Sets TextDiffOptions.IgnoreWhitespace to true.

Parameters

textDiffOptions ConsoleMonster.Changes.TextDiffOptions required
The instance to configure.

Returns

TextDiffOptions The same instance.
public static TextDiffOptions ReferenceLabel(TextDiffOptions textDiffOptions, string value) #

Sets TextDiffOptions.ReferenceLabel: The plain original-text label in the widget and unified header (default Before).

Parameters

textDiffOptions ConsoleMonster.Changes.TextDiffOptions required
The instance.
value string required
The value.

Returns

TextDiffOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { ReferenceLabel = value };    Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().ReferenceLabel(value);