RTL: grid (example)

This commit is contained in:
MarcinZiabek
2022-09-29 21:31:21 +02:00
parent a7ac747776
commit e1ae97d3ca
+28 -1
View File
@@ -1,4 +1,5 @@
using NUnit.Framework;
using System.Linq;
using NUnit.Framework;
using QuestPDF.Elements;
using QuestPDF.Examples.Engine;
using QuestPDF.Fluent;
@@ -186,5 +187,31 @@ namespace QuestPDF.Examples
};
}
}
[Test]
public void Grid()
{
RenderingTest
.Create()
.ProduceImages()
.PageSize(600, 600)
.ShowResults()
.Render(container =>
{
container
.Padding(25)
.Border(1)
.ContentFromRightToLeft()
.Grid(grid =>
{
grid.Spacing(25);
foreach (var i in Enumerable.Range(1, 6))
{
grid.Item(i).Background(Placeholders.BackgroundColor()).Height(100);
}
});
});
}
}
}