PaddingWidget
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
A widget that adds invisible padding around its child content.
csharp
public sealed record PaddingWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<PaddingWidget>Inheritance
Object → Hex1bWidget → PaddingWidget
Implements
Constructors
PaddingWidget(int, int, int, int, Hex1bWidget)
A widget that adds invisible padding around its child content.
Parameters:
Left(Int32):Right(Int32):Top(Int32):Bottom(Int32):Child(Hex1bWidget):
csharp
public PaddingWidget(int Left, int Right, int Top, int Bottom, Hex1bWidget Child)Properties
Bottom
Returns: Int32
csharp
public int Bottom { get; init; }Child
Returns: Hex1bWidget
csharp
public Hex1bWidget Child { get; init; }Left
Returns: Int32
csharp
public int Left { get; init; }Right
Returns: Int32
csharp
public int Right { get; init; }Top
Returns: Int32
csharp
public int Top { get; init; }Examples
csharp
ctx.Padding(1, 1, 0, 0, p => p.Text("Indented text"))