PanelHeader Class

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

Constructors

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

Properties

Justify? Alignment
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 Alignment<PanelHeader>(Justify?)
Sets the alignment for an IAlignable object.
T Centered<PanelHeader>()
Sets the IAlignable object to be centered.
T LeftAligned<PanelHeader>()
Sets the IAlignable object to be left aligned.
T RightAligned<PanelHeader>()
Sets the IAlignable object to be right aligned.