SelectionPromptExtensions Class

Contains extension methods for SelectionPrompt<T>.
public static class SelectionPromptExtensions
Namespace
Spectre.Console

Methods

static SelectionPrompt<T> AddChoiceGroup<T>(SelectionPrompt<T>, T, IEnumerable<T>)
Adds multiple grouped choices.
static SelectionPrompt<T> AddChoiceGroup<T>(SelectionPrompt<T>, T, T[])
Adds multiple grouped choices.
static SelectionPrompt<T> AddChoices<T>(SelectionPrompt<T>, IEnumerable<T>)
Adds multiple choices.
static SelectionPrompt<T> AddChoices<T>(SelectionPrompt<T>, T[])
Adds multiple choices.
static SelectionPrompt<T> DisableSearch<T>(SelectionPrompt<T>)
Disables search for the prompt.
static SelectionPrompt<T> EnableSearch<T>(SelectionPrompt<T>)
Enables search for the prompt.
static SelectionPrompt<T> HighlightStyle<T>(SelectionPrompt<T>, Style)
Sets the highlight style of the selected choice.
static SelectionPrompt<T> Mode<T>(SelectionPrompt<T>, SelectionMode)
Sets the selection mode.
static SelectionPrompt<T> MoreChoicesText<T>(SelectionPrompt<T>, string)
Sets the text that will be displayed if there are more choices to show.
static SelectionPrompt<T> PageSize<T>(SelectionPrompt<T>, int)
Sets how many choices that are displayed to the user.
static SelectionPrompt<T> SearchPlaceholderText<T>(SelectionPrompt<T>, string)
Sets the text that will be displayed when no search text has been entered.
static SelectionPrompt<T> Title<T>(SelectionPrompt<T>, string)
Sets the title.
static SelectionPrompt<T> UseConverter<T>(SelectionPrompt<T>, Func<T, string>)
Sets the function to create a display string for a given choice.
static SelectionPrompt<T> WrapAround<T>(SelectionPrompt<T>, bool)
Sets whether the selection should wrap around when reaching its edges.