Table of Contents

Class IntSelector

Namespace
ConsoleAppVisuals.InteractiveElements
Assembly
ConsoleAppVisuals.dll

The IntSelector is an interactive element that allows the user to select an integer value from a range of values.

public class IntSelector : InteractiveElement<int>
Inheritance
IntSelector
Inherited Members

Remarks

For more information, consider visiting the documentation available here.

Constructors

IntSelector(string, int, int, int, int, Placement, BordersType)

The IntSelector is an interactive element that allows the user to select an integer value from a range of values.

public IntSelector(string question, int min, int max, int start, int step, Placement placement = Placement.TopCenter, BordersType bordersType = BordersType.SingleStraight)

Parameters

question string

The question to ask the user.

min int

The minimum value of the selector.

max int

The maximum value of the selector.

start int

The start value of the selector.

step int

The step of the selector.

placement Placement

The placement of the selector on the console.

bordersType BordersType

The border type of the selector.

Remarks

For more information, consider visiting the documentation available here.

Properties

Borders

Gets the borders manager of the selector.

public Borders Borders { get; }

Property Value

Borders

BordersType

Gets the border type of the selector.

public BordersType BordersType { get; }

Property Value

BordersType

Height

Gets the height of the selector.

public override int Height { get; }

Property Value

int

LeftSelector

Gets the left selector of the selector.

public char LeftSelector { get; }

Property Value

char

Max

Gets the maximum value of the selector.

public int Max { get; }

Property Value

int

Min

Gets the minimum value of the selector.

public int Min { get; }

Property Value

int

Placement

Gets the placement of the selector on the console.

public override Placement Placement { get; }

Property Value

Placement

Question

Gets the question to ask the user.

public string Question { get; }

Property Value

string

RightSelector

Gets the right selector of the selector.

public char RightSelector { get; }

Property Value

char

Start

Gets the start value of the selector.

public int Start { get; }

Property Value

int

Step

Gets the step of the selector.

public int Step { get; }

Property Value

int

Width

Gets the width of the selector.

public override int Width { get; }

Property Value

int

Methods

RenderElementActions()

Defines the actions to perform when the element is called to be rendered on the console.

[Visual]
protected override void RenderElementActions()

UpdateBordersType(BordersType)

Updates the border type of the selector.

public void UpdateBordersType(BordersType bordersType)

Parameters

bordersType BordersType

The border type of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdateLeftSelector(char)

Updates the selector of the selector.

public void UpdateLeftSelector(char leftSelector = '▶')

Parameters

leftSelector char

The new left selector of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdateMax(int)

Updates the maximum value of the selector.

public void UpdateMax(int max)

Parameters

max int

The maximum value of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdateMin(int)

Updates the minimum value of the selector.

public void UpdateMin(int min)

Parameters

min int

The minimum value of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdatePlacement(Placement)

Updates the placement of the selector.

public void UpdatePlacement(Placement placement)

Parameters

placement Placement

The placement of the selector on the console.

Remarks

For more information, consider visiting the documentation available here.

UpdateQuestion(string)

Updates the question of the selector.

public void UpdateQuestion(string question)

Parameters

question string

The question to ask the user.

Remarks

For more information, consider visiting the documentation available here.

UpdateRightSelector(char)

Updates the selector of the selector.

public void UpdateRightSelector(char rightSelector = '◀')

Parameters

rightSelector char

The new right selector of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdateStart(int)

Updates the start value of the selector.

public void UpdateStart(int start)

Parameters

start int

The start value of the selector.

Remarks

For more information, consider visiting the documentation available here.

UpdateStep(int)

Updates the step of the selector.

public void UpdateStep(int step)

Parameters

step int

The step of the selector.

Remarks

For more information, consider visiting the documentation available here.