Interface used to build and configure state options in a fluent manner.
Provided by the IOptionDefinitionContext in a state's State.OnDefineOptions method.
protected override void OnDefineOptions(IOptionDefinitionContext context) { context.AddOption("MyOption", typeof(int)) .WithDefaultValue(2) .Delayed(); }
| Method | Description |
|---|---|
| AsTextArea | Configures the option to use the TextAreaAttribute. |
| Build | Builds and returns the final IStateOption instance based on the current configuration of the builder. |
| Delayed | Configures the option to use the DelayedAttribute. |
| WithDefaultValue | Configures the default value for the option being built. |
| WithDisplayName | Configures the display name of the option being built. |
| WithTooltip | Configures the tooltip text for the option being built. |