Class InfoBoxSelectionColor
Info box writer with selection and color support
Inheritance
Namespace: Terminaux.Inputs.Styles.Infobox
Assembly: Terminaux.dll
Syntax
public static class InfoBoxSelectionColor
Methods
| Edit this page View SourceWriteInfoBoxSelection(int, int, InputChoiceCategoryInfo[], string, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceCategoryInfo[] selections, string text, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentSelection | Current selection (the choice that will be highlighted) |
| int | currentSelected | Current selected choice (for radio buttons) |
| InputChoiceCategoryInfo[] | selections | List of choices |
| string | text | Text to be written. |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(int, int, InputChoiceCategoryInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceCategoryInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentSelection | Current selection (the choice that will be highlighted) |
| int | currentSelected | Current selected choice (for radio buttons) |
| InputChoiceCategoryInfo[] | selections | List of choices |
| string | text | Text to be written. |
| InfoBoxSettings | settings | Infobox settings to use |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(int, int, InputChoiceInfo[], string, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceInfo[] selections, string text, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentSelection | Current selection (the choice that will be highlighted) |
| int | currentSelected | Current selected choice (for radio buttons) |
| InputChoiceInfo[] | selections | List of choices |
| string | text | Text to be written. |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(int, int, InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(int currentSelection, int currentSelected, InputChoiceInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentSelection | Current selection (the choice that will be highlighted) |
| int | currentSelected | Current selected choice (for radio buttons) |
| InputChoiceInfo[] | selections | List of choices |
| string | text | Text to be written. |
| InfoBoxSettings | settings | Infobox settings to use |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(InputChoiceCategoryInfo[], string, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(InputChoiceCategoryInfo[] selections, string text, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| InputChoiceCategoryInfo[] | selections | List of choices |
| string | text | Text to be written. |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(InputChoiceCategoryInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(InputChoiceCategoryInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| InputChoiceCategoryInfo[] | selections | List of choices |
| string | text | Text to be written. |
| InfoBoxSettings | settings | Infobox settings to use |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(InputChoiceInfo[], string, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(InputChoiceInfo[] selections, string text, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| InputChoiceInfo[] | selections | List of choices |
| string | text | Text to be written. |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |
WriteInfoBoxSelection(InputChoiceInfo[], string, InfoBoxSettings, params object[])
Writes the single-choice selection info box
Declaration
public static int WriteInfoBoxSelection(InputChoiceInfo[] selections, string text, InfoBoxSettings settings, params object[] vars)
Parameters
| Type | Name | Description |
|---|---|---|
| InputChoiceInfo[] | selections | List of choices |
| string | text | Text to be written. |
| InfoBoxSettings | settings | Infobox settings to use |
| object[] | vars | Variables to format the message before it's written. |
Returns
| Type | Description |
|---|---|
| int | Selected choice index (starting from zero), or -1 if exited, selection list is empty, or an error occurred |