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