@@ -304,7 +304,7 @@ $phpWord->addParagraphStyle('My Style', array(
304304);
305305
306306$section = $phpWord->addSection();
307- $sectionStyle = $section->getSettings ();
307+ $sectionStyle = $section->getStyle ();
308308// half inch left margin
309309$sectionStyle->setMarginLeft(\PhpOffice\PhpWord\Shared\Font::inchSizeToTwips(.5));
310310// 2 cm right margin
@@ -333,9 +333,9 @@ $sectionSettings = array(
333333);
334334```
335335
336- ### Section settings
336+ ### Section style
337337
338- Below are the available settings for section:
338+ Below are the available styles for section:
339339
340340- ` orientation ` Page orientation, i.e. 'portrait' (default) or 'landscape'
341341- ` marginTop ` Page margin top in twips
@@ -357,49 +357,49 @@ Below are the available settings for section:
357357- ` colsSpace ` Spacing between columns
358358- ` breakType ` Section break type (nextPage, nextColumn, continuous, evenPage, oddPage)
359359
360- The following two settings are automatically set by the use of the ` orientation ` setting . You can alter them but that's not recommended.
360+ The following two styles are automatically set by the use of the ` orientation ` style . You can alter them but that's not recommended.
361361
362362- ` pageSizeW ` Page width in twips
363363- ` pageSizeH ` Page height in twips
364364
365365### Page number
366366
367- You can change a section page number by using the ` pageNumberingStart ` property of the section.
367+ You can change a section page number by using the ` pageNumberingStart ` style of the section.
368368
369369``` php
370370// Method 1
371371$section = $phpWord->addSection(array('pageNumberingStart' => 1));
372372
373373// Method 2
374374$section = $phpWord->addSection();
375- $section->getSettings ()->setPageNumberingStart(1);
375+ $section->getStyle ()->setPageNumberingStart(1);
376376```
377377
378378### Multicolumn
379379
380- You can change a section layout to multicolumn (like in a newspaper) by using the ` breakType ` and ` colsNum ` property of the section.
380+ You can change a section layout to multicolumn (like in a newspaper) by using the ` breakType ` and ` colsNum ` style of the section.
381381
382382``` php
383383// Method 1
384384$section = $phpWord->addSection(array('breakType' => 'continuous', 'colsNum' => 2));
385385
386386// Method 2
387387$section = $phpWord->addSection();
388- $section->getSettings ()->setBreakType('continuous');
389- $section->getSettings ()->setColsNum(2);
388+ $section->getStyle ()->setBreakType('continuous');
389+ $section->getStyle ()->setColsNum(2);
390390```
391391
392392### Line numbering
393393
394- You can apply line numbering to a section by using the ` lineNumbering ` property of the section.
394+ You can apply line numbering to a section by using the ` lineNumbering ` style of the section.
395395
396396``` php
397397// Method 1
398398$section = $phpWord->addSection(array('lineNumbering' => array()));
399399
400400// Method 2
401401$section = $phpWord->addSection();
402- $section->getSettings ()->setLineNumbering(array());
402+ $section->getStyle ()->setLineNumbering(array());
403403```
404404
405405Below are the properties of the line numbering style.
0 commit comments