Table of Contents

Class ElementsList

Namespace
ConsoleAppVisuals.PassiveElements
Assembly
ConsoleAppVisuals.dll

The ElementsList is a passive element that displays a list of all the elements types available.

public class ElementsList : PassiveElement
Inheritance
ElementsList
Inherited Members

Remarks

For more information, consider visiting the documentation available here.

Constructors

ElementsList(ElementType, Placement, BordersType)

The ElementsList is a passive element that displays a list of all the elements types available.

public ElementsList(ElementType elementTypeExpected = ElementType.Default, Placement placement = Placement.TopCenter, BordersType bordersType = BordersType.SingleStraight)

Parameters

elementTypeExpected ElementType

The type of element expected.

placement Placement

The placement of the InteractiveList.

bordersType BordersType

The type of borders of the InteractiveList.

Remarks

For more information, consider visiting the documentation available here.

Properties

Borders

Gets the borders of the InteractiveList.

public Borders Borders { get; }

Property Value

Borders

BordersType

Gets the type of borders of the InteractiveList.

public BordersType BordersType { get; }

Property Value

BordersType

Count

Gets the number of lines in the InteractiveList.

public int Count { get; }

Property Value

int

ElementsTypeExpected

Gets the type of element expected.

public ElementType ElementsTypeExpected { get; }

Property Value

ElementType

Headers

Gets the headers of the dashboard.

public static List<string> Headers { get; }

Property Value

List<string>

Height

Gets the height of the InteractiveList.

public override int Height { get; }

Property Value

int

Lines

Gets the lines of the InteractiveList.

public List<List<string>> Lines { get; }

Property Value

List<List<string>>

Placement

Gets the title of the InteractiveList.

public override Placement Placement { get; }

Property Value

Placement

Title

Gets the title of the InteractiveList.

public string Title { get; }

Property Value

string

Width

Gets the width of the InteractiveList.

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 type of borders of the InteractiveList.

public void UpdateBordersType(BordersType bordersType)

Parameters

bordersType BordersType

The new type of borders of the InteractiveList.

Remarks

For more information, consider visiting the documentation available here.

UpdateElementsTypeExpected(ElementType)

Updates the type of element expected.

public void UpdateElementsTypeExpected(ElementType elementsTypeExpected)

Parameters

elementsTypeExpected ElementType

The new type of element expected.

Remarks

For more information, consider visiting the documentation available here.

UpdatePlacement(Placement)

Updates the placement of the InteractiveList.

public void UpdatePlacement(Placement placement)

Parameters

placement Placement

The new placement of the InteractiveList.

Remarks

For more information, consider visiting the documentation available here.