diff --git a/QuestPDF.Examples/RightToLeftExamples.cs b/QuestPDF.Examples/RightToLeftExamples.cs index 744e084..e6fa9cb 100644 --- a/QuestPDF.Examples/RightToLeftExamples.cs +++ b/QuestPDF.Examples/RightToLeftExamples.cs @@ -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); + } + }); + }); + } } } \ No newline at end of file