RTL: table, decoration, minimal box
This commit is contained in:
@@ -42,7 +42,6 @@ namespace QuestPDF.Examples
|
||||
.Padding(25)
|
||||
.ContentFromRightToLeft()
|
||||
.Border(1)
|
||||
.MinimalBox()
|
||||
.Row(row =>
|
||||
{
|
||||
row.ConstantItem(200).Background(Colors.Red.Lighten2).Height(200);
|
||||
@@ -51,5 +50,59 @@ namespace QuestPDF.Examples
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MinimalBox()
|
||||
{
|
||||
RenderingTest
|
||||
.Create()
|
||||
.ProduceImages()
|
||||
.PageSize(600, 600)
|
||||
.ShowResults()
|
||||
.Render(container =>
|
||||
{
|
||||
container
|
||||
.Padding(25)
|
||||
.ContentFromRightToLeft()
|
||||
.Border(1)
|
||||
.MinimalBox()
|
||||
.Column(column =>
|
||||
{
|
||||
column.Item().Background(Colors.Red.Lighten2).Width(200).Height(200);
|
||||
column.Item().Background(Colors.Green.Lighten2).Width(150).Height(150);
|
||||
column.Item().Background(Colors.Blue.Lighten2).Width(100).Height(100);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Table()
|
||||
{
|
||||
RenderingTest
|
||||
.Create()
|
||||
.ProduceImages()
|
||||
.PageSize(600, 600)
|
||||
.ShowResults()
|
||||
.Render(container =>
|
||||
{
|
||||
container
|
||||
.Padding(25)
|
||||
.ContentFromRightToLeft()
|
||||
.Border(1)
|
||||
.Table(table =>
|
||||
{
|
||||
table.ColumnsDefinition(columns =>
|
||||
{
|
||||
columns.ConstantColumn(200);
|
||||
columns.ConstantColumn(150);
|
||||
columns.ConstantColumn(100);
|
||||
});
|
||||
|
||||
table.Cell().Background(Colors.Red.Lighten2).Height(200);
|
||||
table.Cell().Background(Colors.Green.Lighten2).Height(200);
|
||||
table.Cell().Background(Colors.Blue.Lighten2).Height(200);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user