PanelHeader Class

Represents a panel header.
public sealed class PanelHeader : IHasJustification
Namespace
Spectre.Console
Interfaces

Constructors

PanelHeader(string, Justify?)
Initializes a new instance of the PanelHeader class.

Properties

Justify? Justification
Gets or sets the panel header alignment.
string Text
Gets the panel header text.

Methods

PanelHeader SetAlignment(Justify)
Sets the panel header alignment.
PanelHeader SetStyle(string)
Sets the panel header style.
PanelHeader SetStyle(Style)
Sets the panel header style.

Extension Methods

T Centered<PanelHeader>()
Sets the IHasJustification object to be centered.
T Justify<PanelHeader>(Justify?)
Sets the justification for an IHasJustification object.
T LeftJustified<PanelHeader>()
Sets the IHasJustification object to be left justified.
T RightJustified<PanelHeader>()
Sets the IHasJustification object to be right justified.