Rule Class

A renderable horizontal rule.
public sealed class Rule : Renderable, IRenderable, IAlignable, IHasBoxBorder

Constructors

Rule()
Initializes a new instance of the Rule class.
Rule(string)
Initializes a new instance of the Rule class.

Properties

Justify? Alignment
Gets or sets the rule's title alignment.
BoxBorder Border
Gets or sets the box.
Style Style
Gets or sets the rule style.
string Title
Gets or sets the rule title markup text.

Methods

protected virtual Measurement Measure(RenderContext, int)
Measures the renderable object.
protected override IEnumerable<Segment> Render(RenderContext, int)
Renders the object.

Extension Methods

T Alignment<Rule>(Justify?)
Sets the alignment for an IAlignable object.
T AsciiBorder<Rule>()
Display an ASCII border.
T Border<Rule>(BoxBorder)
Sets the border.
T Centered<Rule>()
Sets the IAlignable object to be centered.
T DoubleBorder<Rule>()
Display a double border.
IEnumerable<Segment> GetSegments(IAnsiConsole)
Gets the segments for a renderable using the specified console.
T HeavyBorder<Rule>()
Display a heavy border.
T LeftAligned<Rule>()
Sets the IAlignable object to be left aligned.
T NoBorder<Rule>()
Do not display a border.
T RightAligned<Rule>()
Sets the IAlignable object to be right aligned.
T RoundedBorder<Rule>()
Display a rounded border.
Rule RuleStyle(Style)
Sets the rule style.
Rule RuleTitle(string)
Sets the rule title.
T SquareBorder<Rule>()
Display a square border.