You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/styles.rst
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ Available Section style options:
29
29
- ``marginRight``. Page margin right in *twip*.
30
30
- ``marginBottom``. Page margin bottom in *twip*.
31
31
- ``orientation``. Page orientation (``portrait``, which is default, or ``landscape``).
32
+
See ``\PhpOffice\PhpWord\Style\Section::ORIENTATION_...`` class constants for possible values
32
33
- ``pageSizeH``. Page height in *twip*. Implicitly defined by ``orientation`` option. Any changes are discouraged.
33
34
- ``pageSizeW``. Page width in *twip*. Implicitly defined by ``orientation`` option. Any changes are discouraged.
34
35
@@ -45,7 +46,7 @@ Available Font style options:
45
46
- ``color``. Font color, e.g. *FF0000*.
46
47
- ``doubleStrikethrough``. Double strikethrough, *true* or *false*.
47
48
- ``fgColor``. Font highlight color, e.g. *yellow*, *green*, *blue*.
48
-
See ``\PhpOffice\PhpWord\Style\Font::FGCOLOR_...`` constants for more values
49
+
See ``\PhpOffice\PhpWord\Style\Font::FGCOLOR_...`` class constants for possible values
49
50
- ``hint``. Font content type, *default*, *eastAsia*, or *cs*.
50
51
- ``italic``. Italic, *true* or *false*.
51
52
- ``name``. Font name, e.g. *Arial*.
@@ -56,7 +57,7 @@ Available Font style options:
56
57
- ``subScript``. Subscript, *true* or *false*.
57
58
- ``superScript``. Superscript, *true* or *false*.
58
59
- ``underline``. Underline, *single*, *dash*, *dotted*, etc.
59
-
See ``\PhpOffice\PhpWord\Style\Font::UNDERLINE_...`` constants for more values
60
+
See ``\PhpOffice\PhpWord\Style\Font::UNDERLINE_...`` class constants for possible values
60
61
- ``lang``. Language, either a language code like *en-US*, *fr-BE*, etc. or an object (or as an array) if you need to set eastAsian or bidirectional languages
61
62
See ``\PhpOffice\PhpWord\Style\Language`` class for some language codes.
62
63
- ``position``. The text position, raised or lowered, in half points
@@ -69,7 +70,7 @@ Paragraph
69
70
Available Paragraph style options:
70
71
71
72
- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
72
-
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class for the details.
73
+
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
73
74
- ``basedOn``. Parent style.
74
75
- ``hanging``. Hanging in *twip*.
75
76
- ``indent``. Indent in *twip*.
@@ -82,14 +83,15 @@ Available Paragraph style options:
82
83
- ``spaceAfter``. Space after paragraph in *twip*.
83
84
- ``spacing``. Space between lines.
84
85
- ``spacingLineRule``. Line Spacing Rule. *auto*, *exact*, *atLeast*
86
+
See ``\PhpOffice\PhpWord\SimpleType\LineSpacingRule`` class constants for possible values.
85
87
- ``suppressAutoHyphens``. Hyphenation for paragraph, *true* or *false*.
86
88
- ``tabs``. Set of custom tab stops.
87
89
- ``widowControl``. Allow first/last line to display on a separate page, *true* or *false*.
88
90
- ``contextualSpacing``. Ignore Spacing Above and Below When Using Identical Styles, *true* or *false*.
89
91
- ``bidi``. Right to Left Paragraph Layout, *true* or *false*.
90
92
- ``shading``. Paragraph Shading.
91
93
- ``textAlignment``. Vertical Character Alignment on Line.
92
-
See ``\PhpOffice\PhpWord\SimpleType\TextAlignment`` class for possible values.
94
+
See ``\PhpOffice\PhpWord\SimpleType\TextAlignment`` class constants for possible values.
93
95
94
96
.. _table-style:
95
97
@@ -99,7 +101,7 @@ Table
99
101
Available Table style options:
100
102
101
103
- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
102
-
See ``\PhpOffice\PhpWord\SimpleType\JcTable`` and ``\PhpOffice\PhpWord\SimpleType\Jc`` classes for the details.
104
+
See ``\PhpOffice\PhpWord\SimpleType\JcTable`` and ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
103
105
- ``bgColor``. Background color, e.g. '9966CC'.
104
106
- ``border(Top|Right|Bottom|Left)Color``. Border color, e.g. '9966CC'.
105
107
- ``border(Top|Right|Bottom|Left)Size``. Border size in *twip*.
@@ -168,7 +170,7 @@ Numbering level
168
170
Available NumberingLevel style options:
169
171
170
172
- ``alignment``. Supports all alignment modes since 1st Edition of ECMA-376 standard up till ISO/IEC 29500:2012.
171
-
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class for the details.
173
+
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
172
174
- ``font``. Font name.
173
175
- ``format``. Numbering format bullet\|decimal\|upperRoman\|lowerRoman\|upperLetter\|lowerLetter.
0 commit comments