Search Results for

    Show / Hide Table of Contents

    Class SelectionStyle

    Selection style for input module

    Inheritance
    object
    SelectionStyle
    Namespace: Terminaux.Inputs.Styles.Selection
    Assembly: Terminaux.dll
    Syntax
    public static class SelectionStyle

    Methods

    | Edit this page View Source

    PromptSelection(string, (string, string)[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, (string, string)[] Answers, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    (string, string)[] Answers

    Set of answers.

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, (string, string)[], (string, string)[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, (string, string)[], (string, string)[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, (string, string)[] Answers, (string, string)[] AlternateAnswers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, (string, string)[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, (string, string)[] Answers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceCategoryInfo[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceCategoryInfo[] Answers, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    InputChoiceCategoryInfo[] Answers

    Set of answer categories.

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceCategoryInfo[], InputChoiceCategoryInfo[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    InputChoiceCategoryInfo[] Answers

    Set of answer categories.

    InputChoiceCategoryInfo[] AltAnswers

    Set of alternate answer categories.

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceCategoryInfo[], InputChoiceCategoryInfo[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceCategoryInfo[] Answers, InputChoiceCategoryInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    InputChoiceCategoryInfo[] Answers

    Set of answer categories.

    InputChoiceCategoryInfo[] AltAnswers

    Set of alternate answer categories.

    SelectionStyleSettings settings

    Selection settings

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceCategoryInfo[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceCategoryInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    InputChoiceCategoryInfo[] Answers

    Set of answer categories.

    SelectionStyleSettings settings

    Selection settings

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceInfo[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceInfo[] Answers, bool kiosk = false, int? currentSelection = null, int? currentSelected = null)
    Parameters
    Type Name Description
    string Question

    A question

    InputChoiceInfo[] Answers

    Set of answers.

    bool kiosk

    Whether to prevent exiting or not

    int? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceInfo[], InputChoiceInfo[], bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceInfo[], InputChoiceInfo[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceInfo[] Answers, InputChoiceInfo[] AltAnswers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    | Edit this page View Source

    PromptSelection(string, InputChoiceInfo[], SelectionStyleSettings, bool, int?, int?)

    Prompts user for selection

    Declaration
    public static int PromptSelection(string Question, InputChoiceInfo[] Answers, SelectionStyleSettings settings, bool kiosk = false, int? currentSelection = null, int? currentSelected = 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? currentSelection

    Current selection (the choice that will be highlighted)

    int? currentSelected

    Current selected choice (for radio buttons)

    Returns
    Type Description
    int

    A one-based selection choice number, or -1 if the user has cancelled the input

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX