Browse Source

API visibility: add default constructors to descriptor classes in extension files

Marcin Ziąbek 3 weeks ago
parent
commit
762c9a2c6f

+ 5 - 0
Source/QuestPDF/Fluent/ColumnExtensions.cs

@@ -9,6 +9,11 @@ namespace QuestPDF.Fluent
     {
         internal Column Column { get; } = new();
 
+        internal ColumnDescriptor()
+        {
+            
+        }
+
         /// <summary>
         /// Adjusts vertical spacing between items.
         /// </summary>

+ 5 - 0
Source/QuestPDF/Fluent/DecorationExtensions.cs

@@ -9,6 +9,11 @@ namespace QuestPDF.Fluent
     public sealed class DecorationDescriptor
     {
         internal Decoration Decoration { get; } = new Decoration();
+
+        internal DecorationDescriptor()
+        {
+            
+        }
         
         /// <summary>
         /// Returns a container for the section positioned before (above) the primary main content.

+ 5 - 0
Source/QuestPDF/Fluent/GridExtensions.cs

@@ -8,6 +8,11 @@ namespace QuestPDF.Fluent
     public sealed class GridDescriptor
     {
         internal Grid Grid { get; } = new Grid();
+
+        internal GridDescriptor()
+        {
+            
+        }
         
         public void Spacing(float value, Unit unit = Unit.Point)
         {

+ 5 - 0
Source/QuestPDF/Fluent/InlinedExtensions.cs

@@ -7,6 +7,11 @@ namespace QuestPDF.Fluent
     public sealed class InlinedDescriptor
     {
         internal Inlined Inlined { get; } = new Inlined();
+
+        internal InlinedDescriptor()
+        {
+            
+        }
         
         #region Spacing
         

+ 5 - 0
Source/QuestPDF/Fluent/LayerExtensions.cs

@@ -9,6 +9,11 @@ namespace QuestPDF.Fluent
     public sealed class LayersDescriptor
     {
         internal Layers Layers { get; } = new Layers();
+
+        internal LayersDescriptor()
+        {
+            
+        }
         
         private IContainer Layer(bool isPrimary)
         {

+ 5 - 0
Source/QuestPDF/Fluent/LineExtensions.cs

@@ -8,6 +8,11 @@ namespace QuestPDF.Fluent
     public class LineDescriptor
     {
         internal Line Line { get; } = new Line();
+
+        internal LineDescriptor()
+        {
+            
+        }
         
         /// <summary>
         /// Specifies the color for the line.

+ 5 - 0
Source/QuestPDF/Fluent/MultiColumnExtensions.cs

@@ -8,6 +8,11 @@ namespace QuestPDF.Fluent;
 public sealed class MultiColumnDescriptor
 {
     internal MultiColumn MultiColumn { get; } = new MultiColumn();
+
+    internal MultiColumnDescriptor()
+    {
+        
+    }
         
     /// <summary>
     /// Configures the horizontal spacing between adjacent columns in the layout.

+ 5 - 0
Source/QuestPDF/Fluent/PageExtensions.cs

@@ -12,6 +12,11 @@ namespace QuestPDF.Fluent
     {
         internal Page Page { get; } = new Page();
 
+        internal PageDescriptor()
+        {
+            
+        }
+        
         #region Size
         
         /// <summary>

+ 5 - 0
Source/QuestPDF/Fluent/RowExtensions.cs

@@ -10,6 +10,11 @@ namespace QuestPDF.Fluent
     {
         internal Row Row { get; } = new();
 
+        internal RowDescriptor()
+        {
+            
+        }
+        
         /// <summary>
         /// Adjusts horizontal spacing between items.
         /// </summary>

+ 10 - 0
Source/QuestPDF/Fluent/TableExtensions.cs

@@ -12,6 +12,11 @@ namespace QuestPDF.Fluent
     {
         internal List<TableColumnDefinition> Columns { get; } = new();
         
+        internal TableColumnsDefinitionDescriptor()
+        {
+            
+        }
+        
         /// <summary>
         /// Defines a column of constant size that occupies the specified horizontal space.
         /// </summary>
@@ -74,6 +79,11 @@ namespace QuestPDF.Fluent
         private Table ContentTable { get; } = new();
         private Table FooterTable { get; } = new();
 
+        internal TableDescriptor()
+        {
+            
+        }
+        
         /// <summary>
         /// Specifies the order and size of the table columns.
         /// <a href="https://www.questpdf.com/api-reference/table/basics.html#columns-definition">Learn more</a>

+ 5 - 0
Source/QuestPDF/Fluent/TextExtensions.cs

@@ -149,6 +149,11 @@ namespace QuestPDF.Fluent
         private TextStyle? DefaultStyle { get; set; }
 
         internal const string DefaultLineClampEllipsis = "…";
+
+        internal TextDescriptor()
+        {
+            
+        }
         
         /// <summary>
         /// Applies a consistent text style for the whole content within this <see cref="TextExtensions.Text">Text</see> element.