17 lines
413 B
C#
17 lines
413 B
C#
using QuestPDF.Infrastructure;
|
|
|
|
namespace QuestPDF.Elements
|
|
{
|
|
internal class Box : ContainerElement
|
|
{
|
|
internal override void Draw(ICanvas canvas, Size availableSpace)
|
|
{
|
|
var targetSize = Child?.Measure(availableSpace) as Size;
|
|
|
|
if (targetSize == null)
|
|
return;
|
|
|
|
Child?.Draw(canvas, targetSize);
|
|
}
|
|
}
|
|
} |