PathFieldFluent
ConsoleMonster.Interactive
The fluent methods of PathField, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- PathFieldFluent
Methods
public static PathField AddDependsOn(PathField pathField, string item) #Adds an item to Field.DependsOn: Fields whose change resets this field (and reloads its options).
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- item string
- The item.
public static PathField AddDependsOn(PathField pathField, params string[] items) #Adds items to Field.DependsOn: Fields whose change resets this field (and reloads its options).
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- items string[]
- The items, in order.
public static PathField AddDependsOn(PathField pathField, IEnumerable<string> items) #Adds items to Field.DependsOn: Fields whose change resets this field (and reloads its options).
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static PathField AddExtension(PathField pathField, string item) #Adds an item to PathField.Extensions: Extensions offered as suggestions.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- item string
- The item.
public static PathField AddExtensions(PathField pathField, params string[] items) #Adds items to PathField.Extensions: Extensions offered as suggestions.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- items string[]
- The items, in order.
public static PathField AddExtensions(PathField pathField, IEnumerable<string> items) #Adds items to PathField.Extensions: Extensions offered as suggestions.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static PathField Default(PathField pathField, object? value) #Sets Field.Default: The declared default: the starting value until a value is set, and values equal to it are left out of the equivalent command.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value object?
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Default = value; pathField.Default(value);public static PathField Help(PathField pathField, string? value) #Sets Field.Help: Help shown while the field has focus.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Help = value; pathField.Help(value);public static PathField Label(PathField pathField, string value) #Sets Field.Label: The label.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Label = value; pathField.Label(value);public static PathField MustExist(PathField pathField, bool value) #Sets PathField.MustExist: Whether the path must exist.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
pathField.MustExist = value; pathField.MustExist(value);public static PathField MustExist(PathField pathField) #Sets PathField.MustExist to true.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance to configure.
public static PathField ParameterName(PathField pathField, string? value) #Sets Field.ParameterName: The command-line parameter this field supplies (Domain, -Domain, --domain); null leaves the field out of the equivalent command.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
pathField.ParameterName = value; pathField.ParameterName(value);public static PathField PathKind(PathField pathField, PathKind value) #Sets PathField.PathKind: What is accepted.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value ConsoleMonster.Interactive.PathKind
- The value.
Examples
// C# initializer or property // C# fluent
pathField.PathKind = value; pathField.PathKind(value);public static PathField Remember(PathField pathField, bool value) #Sets Field.Remember: Whether the value is kept in presets and remembered choices (never for secrets).
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Remember = value; pathField.Remember(value);public static PathField Remember(PathField pathField) #Sets Field.Remember to true.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance to configure.
public static PathField Required(PathField pathField, bool value) #Sets Field.Required: Whether an empty value is refused.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Required = value; pathField.Required(value);public static PathField Required(PathField pathField) #Sets Field.Required to true.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance to configure.
public static PathField Value(PathField pathField, object? value) #Sets Field.Value: The current value.
Parameters
- pathField ConsoleMonster.Interactive.PathField
- The instance.
- value object?
- The value.
Examples
// C# initializer or property // C# fluent
pathField.Value = value; pathField.Value(value);