TextDiffOptionsFluent
ConsoleMonster.Changes
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
- The instance.
- value int
- The value.
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { DifferenceLabel = value }; Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().DifferenceLabel(value);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
- The instance.
- value bool
- The value.
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
- The instance to configure.
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Changes.TextDiffOptions { ReferenceLabel = value }; Ui.Options<global::ConsoleMonster.Changes.TextDiffOptions>().ReferenceLabel(value);