Class SelectionMultipleStyle
Multiple selection style for input module
Inheritance
Namespace: Terminaux.Inputs.Styles.Selection
Assembly: Terminaux.dll
Syntax
public static class SelectionMultipleStyle
Methods
| Edit this page View SourcePromptMultipleSelection(string, (string, string)[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
(string, string)[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, (string, string)[], (string, string)[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
(string, string)[] | Answers | Set of answers. |
(string, string)[] | AlternateAnswers | Set of alternate answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, (string, string)[], (string, string)[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
(string, string)[] | Answers | Set of answers. |
(string, string)[] | AlternateAnswers | Set of alternate answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, (string, string)[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
(string, string)[] | Answers | Set of answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceCategoryInfo[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceCategoryInfo[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceCategoryInfo[], InputChoiceCategoryInfo[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceCategoryInfo[] | Answers | Set of answers. |
InputChoiceCategoryInfo[] | AltAnswers | Set of alternate answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceCategoryInfo[], InputChoiceCategoryInfo[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceCategoryInfo[] | Answers | Set of answers. |
InputChoiceCategoryInfo[] | AltAnswers | Set of alternate answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceCategoryInfo[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceCategoryInfo[] | Answers | Set of answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceInfo[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceInfo[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceInfo[], InputChoiceInfo[], bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceInfo[] | Answers | Set of answers. |
InputChoiceInfo[] | AltAnswers | Set of alternate answers. |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceInfo[], InputChoiceInfo[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceInfo[] | Answers | Set of answers. |
InputChoiceInfo[] | AltAnswers | Set of alternate answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |
PromptMultipleSelection(string, InputChoiceInfo[], SelectionStyleSettings, bool, int[]?, int?)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false, int[]? initialChoices = null, int? currentSelection = null)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceInfo[] | Answers | Set of answers. |
SelectionStyleSettings | settings | Selection settings |
bool | kiosk | Whether to prevent exiting or not |
int[] | initialChoices | Zero-based index numbers of selected choices |
int? | currentSelection | Current selection (the choice that will be highlighted) |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |