Class ComboBoxModule
Combo box (selection) module
Inheritance
Inherited Members
Namespace
Syntax
public class ComboBoxModule : InputModule
Constructors
ComboBoxModule()
Makes a new selection combo box module instance
Declaration
public ComboBoxModule()
ComboBoxModule(InputChoiceCategoryInfo[])
Makes a new selection combo box module instance
Declaration
public ComboBoxModule(InputChoiceCategoryInfo[] categories)
Parameters
| Name | Type | Description |
|---|---|---|
| categories | InputChoiceCategoryInfo[] | Categories |
ComboBoxModule(InputChoiceGroupInfo[])
Makes a new selection combo box module instance
Declaration
public ComboBoxModule(InputChoiceGroupInfo[] groups)
Parameters
| Name | Type | Description |
|---|---|---|
| groups | InputChoiceGroupInfo[] | Groups |
ComboBoxModule(InputChoiceInfo[])
Makes a new selection combo box module instance
Declaration
public ComboBoxModule(InputChoiceInfo[] choices)
Parameters
| Name | Type | Description |
|---|---|---|
| choices | InputChoiceInfo[] | Choices |
Properties
Choices
Choices to render
Property Value
Declaration
public InputChoiceCategoryInfo[] Choices { get; set; }
ExtraPopoverHeight
Extra popover height to add
Property Value
int
Declaration
public override int ExtraPopoverHeight { get; protected set; }
Overrides
Methods
ProcessInput(Coordinate, Size)
Processes the input by prompting user
Declaration
public override void ProcessInput(Coordinate inputPopoverPos = default, Size inputPopoverSize = default)
Parameters
| Name | Type | Description |
|---|---|---|
| inputPopoverPos | Coordinate | Input popover position. If there is no popover, it can be the same as the beginning of the input |
| inputPopoverSize | Size | Input popover size. If there is no popover, it can be the same as the input height and/or width |
Overrides
RenderInput(int)
Renders the input before the control goes to this input module (before ProcessInput(Coordinate, Size) is called)
Returns
string
A string that can be rendered to the console
Declaration
public override string RenderInput(int width)
Parameters
| Name | Type | Description |
|---|---|---|
| width | int | Input width (excluding the input name width) |