DefaultValueStyle<T>(TextPrompt<T>, Style) Method

Sets the style in which the default value is displayed.
public static TextPrompt<T> DefaultValueStyle<T>(this TextPrompt<T> obj, Style style)
Namespace
Spectre.Console
Containing Type
TextPromptExtensions

Parameters

T
The prompt result type.

Parameters

TextPrompt<T> obj
The prompt.
Style style
The default value style or to use the default style (green).

Returns