From 5f7da8b5b3d3dc1a4aa54a4da5ec050ebdd4b99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zi=C4=85bek?= Date: Wed, 26 Jan 2022 22:26:34 +0100 Subject: [PATCH] Line: added default configuration --- QuestPDF/Elements/Line.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/QuestPDF/Elements/Line.cs b/QuestPDF/Elements/Line.cs index 0d21d38..03def38 100644 --- a/QuestPDF/Elements/Line.cs +++ b/QuestPDF/Elements/Line.cs @@ -1,4 +1,5 @@ using QuestPDF.Drawing; +using QuestPDF.Helpers; using QuestPDF.Infrastructure; namespace QuestPDF.Elements @@ -16,9 +17,9 @@ namespace QuestPDF.Elements internal class Line : Element, ILine, ICacheable { - public LineType Type { get; set; } - public string Color { get; set; } - public float Size { get; set; } + public LineType Type { get; set; } = LineType.Vertical; + public string Color { get; set; } = Colors.Black; + public float Size { get; set; } = 1; internal override SpacePlan Measure(Size availableSpace) {