Share via


ChoiceFactoryOptions Class

Definition

Contains formatting options for presenting a list of choices.

public class ChoiceFactoryOptions
type ChoiceFactoryOptions = class
Public Class ChoiceFactoryOptions
Inheritance
ChoiceFactoryOptions
Derived

Constructors

ChoiceFactoryOptions()

Initializes a new instance of the ChoiceFactoryOptions class.

ChoiceFactoryOptions(String, String, String, Nullable<Boolean>)

Initializes a new instance of the ChoiceFactoryOptions class. Refer to the code in teh ConfirmPrompt for an example of usage.

Properties

IncludeNumbers

Gets or sets a value indicating whether an inline and list style choices will be prefixed with the index of the choice as in "1. choice". If false, the list style will use a bulleted list instead.The default value is true.

InlineOr

Gets or sets the separator inserted between the choices when their are only 2 choices. The default value is " or ". This is optional.

InlineOrMore

Gets or sets the separator inserted between the last 2 choices when their are more than 2 choices. The default value is ", or ". This is optional.

InlineSeparator

Gets or sets the character used to separate individual choices when there are more than 2 choices. The default value is ", ". This is optional.

Applies to