Added tests for stack and row, project cleanup

This commit is contained in:
Marcin Ziąbek
2021-05-02 21:11:08 +02:00
parent 0d86039c0c
commit f792f6c749
25 changed files with 690 additions and 990 deletions
+10 -10
View File
@@ -19,20 +19,20 @@ namespace QuestPDF.Examples
//[ShowResult]
[ImageSize(300, 300)]
public void Section(IContainer container)
public void Decoration(IContainer container)
{
container
.Background("#FFF")
.Padding(25)
.Decoration(section =>
.Decoration(decoration =>
{
section
decoration
.Header()
.Background("#888")
.Padding(10)
.Text("Notes", TextStyle.Default.Size(16).Color("#FFF"));
section
decoration
.Content()
.Background("#DDD")
.Padding(10)
@@ -181,12 +181,12 @@ namespace QuestPDF.Examples
grid.Spacing(5);
grid.Columns(12);
grid.Element(8).Background("#DDD").Height(50).Padding(5).Text("This is a short text", textStyle);
grid.Element(4).Background("#BBB").Padding(5).Text("Showing how to...", textStyle);
grid.Element(2).Background("#999").Height(50);
grid.Element(4).Background("#AAA").Border(2).BorderColor("#666").Padding(5).Text("...generate", textStyle);
grid.Element(6).Background("#CCC").Padding(5).Text("simple grids", textStyle.Size(18).Bold());
grid.Element(8).Background("#DDD").Height(50);
grid.Item(8).Background("#DDD").Height(50).Padding(5).Text("This is a short text", textStyle);
grid.Item(4).Background("#BBB").Padding(5).Text("Showing how to...", textStyle);
grid.Item(2).Background("#999").Height(50);
grid.Item(4).Background("#AAA").Border(2).BorderColor("#666").Padding(5).Text("...generate", textStyle);
grid.Item(6).Background("#CCC").Padding(5).Text("simple grids", textStyle.Size(18).Bold());
grid.Item(8).Background("#DDD").Height(50);
});
}