Browse Source

Disabled warning CS1591

Marcin Ziąbek 2 years ago
parent
commit
4ecbb7a28b

+ 3 - 1
Source/QuestPDF/Helpers/Colors.cs

@@ -1,4 +1,6 @@
-namespace QuestPDF.Helpers
+#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
+
+namespace QuestPDF.Helpers
 {
 {
     /// <summary>
     /// <summary>
     /// Offers a palette of colors defined by the Google Material Design System guidelines.
     /// Offers a palette of colors defined by the Google Material Design System guidelines.

+ 3 - 1
Source/QuestPDF/Helpers/Fonts.cs

@@ -1,4 +1,6 @@
-namespace QuestPDF.Helpers
+#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
+
+namespace QuestPDF.Helpers
 {
 {
     /// <summary>
     /// <summary>
     /// Contains a collection of fonts defined by the PDF standard.
     /// Contains a collection of fonts defined by the PDF standard.

+ 8 - 0
Source/QuestPDF/Helpers/PageSizes.cs

@@ -1,6 +1,8 @@
 using System;
 using System;
 using QuestPDF.Infrastructure;
 using QuestPDF.Infrastructure;
 
 
+#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
+
 namespace QuestPDF.Helpers
 namespace QuestPDF.Helpers
 {
 {
     /// <summary>
     /// <summary>
@@ -78,11 +80,17 @@ namespace QuestPDF.Helpers
 
 
     public static class PageSizeExtensions
     public static class PageSizeExtensions
     {
     {
+        /// <summary>
+        /// Sets page size to a portrait orientation, making the width smaller than the height.
+        /// </summary>
         public static PageSize Portrait(this PageSize size)
         public static PageSize Portrait(this PageSize size)
         {
         {
             return new PageSize(Math.Min(size.Width, size.Height), Math.Max(size.Width, size.Height));
             return new PageSize(Math.Min(size.Width, size.Height), Math.Max(size.Width, size.Height));
         }
         }
 
 
+        /// <summary>
+        /// Sets page size to a landscape orientation, making the width bigger than the height.
+        /// </summary>
         public static PageSize Landscape(this PageSize size)
         public static PageSize Landscape(this PageSize size)
         {
         {
             return new PageSize(Math.Max(size.Width, size.Height), Math.Min(size.Width, size.Height));
             return new PageSize(Math.Max(size.Width, size.Height), Math.Min(size.Width, size.Height));

+ 3 - 1
Source/QuestPDF/Infrastructure/FontWeight.cs

@@ -1,4 +1,6 @@
-namespace QuestPDF.Infrastructure
+#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
+
+namespace QuestPDF.Infrastructure
 {
 {
     public enum FontWeight
     public enum FontWeight
     {
     {