Class Footer
- Namespace
- ConsoleAppVisuals.PassiveElements
- Assembly
- ConsoleAppVisuals.dll
The Footer is a passive element that displays a footer on the console.
public class Footer : PassiveElement
- Inheritance
-
Footer
- Inherited Members
Remarks
For more information, consider visiting the documentation available here.
Constructors
Footer(string, string, string)
The Footer is a passive element that displays a footer on the console.
public Footer(string leftText = "Footer Left", string centerText = "Footer Center", string rightText = "Footer Right")
Parameters
leftTextstringThe text on the left of the footer.
centerTextstringThe text in the center of the footer.
rightTextstringThe text on the right of the footer.
Remarks
For more information, consider visiting the documentation available here.
Properties
Height
Gets the height of the footer.
public override int Height { get; }
Property Value
MaxNumberOfThisElement
Gets the maximum number of this element.
public override int MaxNumberOfThisElement { get; }
Property Value
Placement
Gets the placement of the footer.
public override Placement Placement { get; }
Property Value
Text
Gets the text of the footer.
public (string, string, string) Text { get; }
Property Value
Width
Gets the width of the footer.
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()
UpdateCenterText(string)
Updates the text in the center of the footer.
public void UpdateCenterText(string centerText)
Parameters
centerTextstringThe new text in the center of the footer.
Remarks
For more information, consider visiting the documentation available here.
UpdateLeftText(string)
Updates the text on the left of the footer.
public void UpdateLeftText(string leftText)
Parameters
leftTextstringThe new text on the left of the footer.
Remarks
For more information, consider visiting the documentation available here.
UpdateRightText(string)
Updates the text on the right of the footer.
public void UpdateRightText(string rightText)
Parameters
rightTextstringThe new text on the right of the footer.
Remarks
For more information, consider visiting the documentation available here.