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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, bool kiosk = false)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
(string, string)[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, SelectionStyleSettings settings, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, (string, string)[] Answers, SelectionStyleSettings settings, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, bool kiosk = false)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceCategoryInfo[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceCategoryInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, bool kiosk = false)
Parameters
Type | Name | Description |
---|---|---|
string | Question | A question |
InputChoiceInfo[] | Answers | Set of answers. |
bool | kiosk | Whether to prevent exiting or not |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false)
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 |
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)
Prompts user for selection
Declaration
public static int[] PromptMultipleSelection(string Question, InputChoiceInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false)
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 |
Returns
Type | Description |
---|---|
int[] | An array of zero-based choice indexes, or an empty array if the user has cancelled the input |