Added elements: Rotate, Unconstrained
This commit is contained in:
@@ -649,6 +649,7 @@ namespace QuestPDF.Examples
|
||||
.Render(container =>
|
||||
{
|
||||
container
|
||||
.Padding(10)
|
||||
.Border(2)
|
||||
.Row(row =>
|
||||
{
|
||||
@@ -663,5 +664,34 @@ namespace QuestPDF.Examples
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Floating()
|
||||
{
|
||||
RenderingTest
|
||||
.Create()
|
||||
.PageSize(400, 300)
|
||||
.Render(container =>
|
||||
{
|
||||
container
|
||||
.Padding(50)
|
||||
.Layers(layers =>
|
||||
{
|
||||
layers
|
||||
.PrimaryLayer()
|
||||
.Background(Colors.Green.Lighten4)
|
||||
.Extend();
|
||||
|
||||
layers
|
||||
.Layer()
|
||||
.Rotate(17)
|
||||
.TranslateX(-100)
|
||||
.TranslateY(-50)
|
||||
.Width(200)
|
||||
.Height(100)
|
||||
.Background(Colors.Green.Medium);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user