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
ElementTypeThe type of element expected.
placement
PlacementThe placement of the InteractiveList.
bordersType
BordersTypeThe 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
BordersType
Gets the type of borders of the InteractiveList.
public BordersType BordersType { get; }
Property Value
Count
Gets the number of lines in the InteractiveList.
public int Count { get; }
Property Value
ElementsTypeExpected
Gets the type of element expected.
public ElementType ElementsTypeExpected { get; }
Property Value
Headers
Gets the headers of the dashboard.
public static List<string> Headers { get; }
Property Value
Height
Gets the height of the InteractiveList.
public override int Height { get; }
Property Value
Lines
Gets the lines of the InteractiveList.
public List<List<string>> Lines { get; }
Property Value
Placement
Gets the title of the InteractiveList.
public override Placement Placement { get; }
Property Value
Title
Gets the title of the InteractiveList.
public string Title { get; }
Property Value
Width
Gets the width of the InteractiveList.
public override int Width { get; }
Property Value
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
BordersTypeThe 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
ElementTypeThe 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
PlacementThe new placement of the InteractiveList.
Remarks
For more information, consider visiting the documentation available here.