Skip to content

BorderWidget ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A widget that draws a box border around its child content. Use the fluent method to set an optional title.

csharp
public sealed record BorderWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<BorderWidget>

Inheritance ​

Object → Hex1bWidget → BorderWidget

Implements ​

Constructors ​

BorderWidget(Hex1bWidget) ​

A widget that draws a box border around its child content. Use the fluent method to set an optional title.

Parameters:

csharp
public BorderWidget(Hex1bWidget Child)

Properties ​

Child ​

Returns: Hex1bWidget

csharp
public Hex1bWidget Child { get; init; }

Methods ​

Title(string) ​

Sets the title displayed centered on the top border.

Parameters:

Returns: BorderWidget

csharp
public BorderWidget Title(string title)

Released under the MIT License.