Appearance
Decoration
- This container consists of the following three slots:
Before
,Content
andAfter
. - The
Before
element is always visible above the content. When the element is visible on multiple pages, theBefore
element is repeated on each page. - The
Content
element is visible only once. It is often used along with content that spans multiple pages. - The
After
element is always visible below the content. When the element is visible on multiple pages, theAfter
element is repeated on each page.
c#
.Decoration(decoration =>
{
decoration
.Before()
.Background(Colors.Grey.Medium)
.Padding(10)
.Text("Notes")
.FontSize(16).FontColor("#FFF");
decoration
.Content()
.Background(Colors.Grey.Lighten3)
.Padding(10)
.ExtendVertical()
.Text(Helpers.Placeholders.LoremIpsum());
});