MultiSelectionPromptExtensions Class

Contains extension methods for MultiSelectionPrompt<T>.
public static class MultiSelectionPromptExtensions
Namespace
Spectre.Console

Methods

static MultiSelectionPrompt<T> AddChoiceGroup<T>(MultiSelectionPrompt<T>, T, IEnumerable<T>)
Adds multiple grouped choices.
static MultiSelectionPrompt<T> AddChoiceGroup<T>(MultiSelectionPrompt<T>, T, T[])
Adds multiple grouped choices.
static MultiSelectionPrompt<T> AddChoices<T>(MultiSelectionPrompt<T>, IEnumerable<T>)
Adds multiple choices.
static MultiSelectionPrompt<T> AddChoices<T>(MultiSelectionPrompt<T>, T[])
Adds multiple choices.
static MultiSelectionPrompt<T> HighlightStyle<T>(MultiSelectionPrompt<T>, Style)
Sets the highlight style of the selected choice.
static MultiSelectionPrompt<T> InstructionsText<T>(MultiSelectionPrompt<T>, string)
Sets the text that instructs the user of how to select items.
static MultiSelectionPrompt<T> Mode<T>(MultiSelectionPrompt<T>, SelectionMode)
Sets the selection mode.
static MultiSelectionPrompt<T> MoreChoicesText<T>(MultiSelectionPrompt<T>, string)
Sets the text that will be displayed if there are more choices to show.
static MultiSelectionPrompt<T> NotRequired<T>(MultiSelectionPrompt<T>)
Requires no choice to be selected.
static MultiSelectionPrompt<T> PageSize<T>(MultiSelectionPrompt<T>, int)
Sets how many choices that are displayed to the user.
static MultiSelectionPrompt<T> Required<T>(MultiSelectionPrompt<T>, bool)
Sets a value indicating whether or not at least one choice must be selected.
static MultiSelectionPrompt<T> Required<T>(MultiSelectionPrompt<T>)
Requires a choice to be selected.
static MultiSelectionPrompt<T> Select<T>(MultiSelectionPrompt<T>, T)
Marks an item as selected.
static MultiSelectionPrompt<T> Title<T>(MultiSelectionPrompt<T>, string)
Sets the title.
static MultiSelectionPrompt<T> UseConverter<T>(MultiSelectionPrompt<T>, Func<T, string>)
Sets the function to create a display string for a given choice.
static MultiSelectionPrompt<T> WrapAround<T>(MultiSelectionPrompt<T>, bool)
Sets whether the selection should wrap around when reaching its edges.