From 0946607154e9816998cdb12fa826fbde404871a8 Mon Sep 17 00:00:00 2001 From: Bebo-Maker Date: Thu, 17 Mar 2022 12:05:27 +0100 Subject: [PATCH] Add table to example. --- QuestPDF.Previewer.Examples/Program.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/QuestPDF.Previewer.Examples/Program.cs b/QuestPDF.Previewer.Examples/Program.cs index da19087..67a6b45 100644 --- a/QuestPDF.Previewer.Examples/Program.cs +++ b/QuestPDF.Previewer.Examples/Program.cs @@ -23,10 +23,21 @@ Document { x.Spacing(20); - x.Item().Text("VS: Start in debug mode with 'Hot Reload on Save' enabled."); - x.Item().Text("VSCode: Use dotnet watch to instantly see your changes in the previewer."); + x.Item().Table(t => + { + t.ColumnsDefinition(c => + { + c.RelativeColumn(); + c.RelativeColumn(3); + }); - x.Item().Text("Try it out here."); + t.Cell().Border(1).Background(Colors.Grey.Lighten3).Padding(5).Text("Visual Studio"); + t.Cell().Border(1).Padding(5).Text("Start in debug mode with 'Hot Reload on Save' enabled."); + t.Cell().Border(1).Background(Colors.Grey.Lighten3).Padding(5).Text("Command line"); + t.Cell().Border(1).Padding(5).Text("Run 'dotnet watch'."); + }); + + x.Item().Text("Modify this line and the preview should show your changes instantly."); }); page.Footer()