Table of Contents

Method MarkupLineInterpolated

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

MarkupLineInterpolated(FormattableString)

Writes an interpolated string as Spectre.Console markup, followed by a line break: the literal parts are parsed as markup and the string values in the holes are escaped.

[SuppressMessage("ReSharper", "UnusedMethodReturnValue.Global", Justification = "Part of the public API: the return value exists for chaining by consumers, whether or not the library chains it.")]
IOutput MarkupLineInterpolated(FormattableString value)

Parameters

value FormattableString

The interpolated string, such as $"[green]{path}[/]".

Returns

IOutput

The current output instance for method chaining.

Remarks

The line-terminating form of MarkupInterpolated(FormattableString); the same escaping rule applies.

Exceptions

ArgumentNullException

value is null.