Browse Source

Line: added default configuration

Marcin Ziąbek 3 years ago
parent
commit
5f7da8b5b3
1 changed files with 4 additions and 3 deletions
  1. 4 3
      QuestPDF/Elements/Line.cs

+ 4 - 3
QuestPDF/Elements/Line.cs

@@ -1,4 +1,5 @@
 using QuestPDF.Drawing;
 using QuestPDF.Drawing;
+using QuestPDF.Helpers;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 
 namespace QuestPDF.Elements
 namespace QuestPDF.Elements
@@ -16,9 +17,9 @@ namespace QuestPDF.Elements
     
     
     internal class Line : Element, ILine, ICacheable
     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)
         internal override SpacePlan Measure(Size availableSpace)
         {
         {