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