@@ -56,43 +56,85 @@ public PagePropertyBuilder SetScale(double scale)
5656 return this ;
5757 }
5858
59+ [ Obsolete ( "Use SetPaperWidth" ) ]
5960 public PagePropertyBuilder PaperWidth ( double width )
6061 {
6162 this . _pageProperties . PaperWidth = width ;
6263 return this ;
6364 }
6465
66+ [ Obsolete ( "Use SetPaperHeight" ) ]
6567 public PagePropertyBuilder PaperHeight ( double height )
6668 {
6769 this . _pageProperties . PaperHeight = height ;
6870 return this ;
6971 }
7072
73+ [ Obsolete ( "Use SetMarginTop" ) ]
7174 public PagePropertyBuilder MarginTop ( double marginTop )
7275 {
7376 this . _pageProperties . MarginTop = marginTop ;
7477 return this ;
7578 }
7679
80+ [ Obsolete ( "Use SetMarginBottom" ) ]
7781 public PagePropertyBuilder MarginBottom ( double marginBottom )
7882 {
7983 this . _pageProperties . MarginBottom = marginBottom ;
8084 return this ;
8185 }
8286
87+ [ Obsolete ( "Use SetMarginLeft" ) ]
8388 public PagePropertyBuilder MarginLeft ( double marginLeft )
8489 {
8590 this . _pageProperties . MarginLeft = marginLeft ;
8691 return this ;
8792 }
8893
94+ [ Obsolete ( "Use SetMarginRight" ) ]
8995 public PagePropertyBuilder MarginRight ( double marginRight )
9096 {
9197 this . _pageProperties . MarginRight = marginRight ;
9298 return this ;
9399 }
94100
95- [ Obsolete ( "Use Landscape()" ) ]
101+ public PagePropertyBuilder SetPaperWidth ( double width )
102+ {
103+ this . _pageProperties . PaperWidth = width ;
104+ return this ;
105+ }
106+
107+ public PagePropertyBuilder SetPaperHeight ( double height )
108+ {
109+ this . _pageProperties . PaperHeight = height ;
110+ return this ;
111+ }
112+
113+ public PagePropertyBuilder SetMarginTop ( double marginTop )
114+ {
115+ this . _pageProperties . MarginTop = marginTop ;
116+ return this ;
117+ }
118+
119+ public PagePropertyBuilder SetMarginBottom ( double marginBottom )
120+ {
121+ this . _pageProperties . MarginBottom = marginBottom ;
122+ return this ;
123+ }
124+
125+ public PagePropertyBuilder SetMarginLeft ( double marginLeft )
126+ {
127+ this . _pageProperties . MarginLeft = marginLeft ;
128+ return this ;
129+ }
130+
131+ public PagePropertyBuilder SetMarginRight ( double marginRight )
132+ {
133+ this . _pageProperties . MarginRight = marginRight ;
134+ return this ;
135+ }
136+
137+ [ Obsolete ( "Use SetLandscape()" ) ]
96138 public PagePropertyBuilder LandScape ( bool landscape = true )
97139 {
98140 this . _pageProperties . Landscape = landscape ;
@@ -104,7 +146,7 @@ public PagePropertyBuilder LandScape(bool landscape = true)
104146 /// </summary>
105147 /// <param name="landscape"></param>
106148 /// <returns></returns>
107- public PagePropertyBuilder Landscape ( bool landscape = true )
149+ public PagePropertyBuilder SetLandscape ( bool landscape = true )
108150 {
109151 this . _pageProperties . Landscape = landscape ;
110152 return this ;
@@ -115,7 +157,7 @@ public PagePropertyBuilder Landscape(bool landscape = true)
115157 /// </summary>
116158 /// <param name="prefer"></param>
117159 /// <returns></returns>
118- public PagePropertyBuilder PreferCssPageSize ( bool prefer = true )
160+ public PagePropertyBuilder SetPreferCssPageSize ( bool prefer = true )
119161 {
120162 this . _pageProperties . PreferCssPageSize = prefer ;
121163 return this ;
@@ -126,7 +168,7 @@ public PagePropertyBuilder PreferCssPageSize(bool prefer = true)
126168 /// </summary>
127169 /// <param name="omitBackground"></param>
128170 /// <returns></returns>
129- public PagePropertyBuilder OmitBackground ( bool omitBackground = true )
171+ public PagePropertyBuilder SetOmitBackground ( bool omitBackground = true )
130172 {
131173 this . _pageProperties . OmitBackground = omitBackground ;
132174 return this ;
@@ -137,7 +179,7 @@ public PagePropertyBuilder OmitBackground(bool omitBackground = true)
137179 /// </summary>
138180 /// <param name="printBackground"></param>
139181 /// <returns></returns>
140- public PagePropertyBuilder PrintBackground ( bool printBackground = true )
182+ public PagePropertyBuilder SetPrintBackground ( bool printBackground = true )
141183 {
142184 this . _pageProperties . PrintBackground = printBackground ;
143185 return this ;
@@ -148,7 +190,7 @@ public PagePropertyBuilder PrintBackground(bool printBackground = true)
148190 /// </summary>
149191 /// <param name="generateDocumentOutline"></param>
150192 /// <returns></returns>
151- public PagePropertyBuilder GenerateDocumentOutline ( bool generateDocumentOutline = true )
193+ public PagePropertyBuilder SetGenerateDocumentOutline ( bool generateDocumentOutline = true )
152194 {
153195 this . _pageProperties . GenerateDocumentOutline = generateDocumentOutline ;
154196 return this ;
0 commit comments