Skip to content
On this page

Line

Vertical

LineVertical is virtual - it takes entire available height and no width.

csharp
.Padding(15)
.DefaultTextStyle(x => x.FontSize(16))
.Row(row =>
{
    row.AutoItem().Text("Left text");
    row.AutoItem().PaddingHorizontal(10).LineVertical(1).LineColor(Colors.Grey.Medium);
    row.AutoItem().Text("Right text");
});
.Padding(15)
.DefaultTextStyle(x => x.FontSize(16))
.Row(row =>
{
    row.AutoItem().Text("Left text");
    row.AutoItem().PaddingHorizontal(10).LineVertical(1).LineColor(Colors.Grey.Medium);
    row.AutoItem().Text("Right text");
});

example

Horizontal

LineHorizontal is virtual - it takes entire available width and no height.

csharp
.Padding(15)
.MinimalBox()
.DefaultTextStyle(x => x.FontSize(16))
.Column(column =>
{
    column.Item().Text("Above text");
    column.Item().PaddingVertical(5).LineHorizontal(1).LineColor(Colors.Grey.Medium);
    column.Item().Text("Below text");
});
.Padding(15)
.MinimalBox()
.DefaultTextStyle(x => x.FontSize(16))
.Column(column =>
{
    column.Item().Text("Above text");
    column.Item().PaddingVertical(5).LineHorizontal(1).LineColor(Colors.Grey.Medium);
    column.Item().Text("Below text");
});

example

Released under the MIT License.