Files
QuestPDF/Source/QuestPDF/Elements/Hyperlink.cs
T
2023-01-06 00:45:12 +01:00

21 lines
536 B
C#

using QuestPDF.Drawing;
using QuestPDF.Infrastructure;
namespace QuestPDF.Elements
{
internal class Hyperlink : ContainerElement
{
public string Url { get; set; } = "https://www.questpdf.com";
internal override void Draw(Size availableSpace)
{
var targetSize = base.Measure(availableSpace);
if (targetSize.Type == SpacePlanType.Wrap)
return;
Canvas.DrawHyperlink(Url, targetSize);
base.Draw(availableSpace);
}
}
}