Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 30, 2024 11:16
Show Gist options
  • Select an option

  • Save bjoerntx/b800cbbc09acd75fdd2b8431551c90b5 to your computer and use it in GitHub Desktop.

Select an option

Save bjoerntx/b800cbbc09acd75fdd2b8431551c90b5 to your computer and use it in GitHub Desktop.
void ComposeHeader(IContainer container)
{
var titleStyle = TextStyle.Default.FontSize(20).SemiBold().FontColor(Colors.Blue.Medium);
container.Row(row =>
{
row.RelativeItem().Column(column =>
{
column.Item().Text($"Invoice #{Model.InvoiceNumber}").Style(titleStyle);
column.Item().Text(text =>
{
text.Span("Issue date: ").SemiBold();
text.Span($"{Model.IssueDate:d}");
});
column.Item().Text(text =>
{
text.Span("Due date: ").SemiBold();
text.Span($"{Model.DueDate:d}");
});
});
row.ConstantItem(100).Height(50).Placeholder();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment