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
More examples are provided in the [samples folder](samples/). For an easy access to those samples launch `php -S localhost:8000` in the samples directory then browse to [http://localhost:8000](http://localhost:8000) to view the samples.
164
-
You can also read the [Developers' Documentation](http://phpword.readthedocs.org/)and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/master/)for more detail.
164
+
You can also read the [Developers' Documentation](http://phpword.readthedocs.org/) for more detail.
Copy file name to clipboardExpand all lines: docs/styles.rst
+18-7Lines changed: 18 additions & 7 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,10 +57,11 @@ 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
64
+
- ``hidden``. Hidden text, *true* or *false*.
63
65
64
66
.. _paragraph-style:
65
67
@@ -69,7 +71,7 @@ Paragraph
69
71
Available Paragraph style options:
70
72
71
73
- ``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.
74
+
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
73
75
- ``basedOn``. Parent style.
74
76
- ``hanging``. Hanging in *twip*.
75
77
- ``indent``. Indent in *twip*.
@@ -80,16 +82,17 @@ Available Paragraph style options:
80
82
- ``pageBreakBefore``. Start paragraph on next page, *true* or *false*.
81
83
- ``spaceBefore``. Space before paragraph in *twip*.
82
84
- ``spaceAfter``. Space after paragraph in *twip*.
83
-
- ``spacing``. Space between lines.
85
+
- ``spacing``. Space between lines in *twip*. If spacingLineRule is auto, 240 (height of 1 line) will be added, so if you want a double line height, set this to 240.
84
86
- ``spacingLineRule``. Line Spacing Rule. *auto*, *exact*, *atLeast*
87
+
See ``\PhpOffice\PhpWord\SimpleType\LineSpacingRule`` class constants for possible values.
85
88
- ``suppressAutoHyphens``. Hyphenation for paragraph, *true* or *false*.
86
89
- ``tabs``. Set of custom tab stops.
87
90
- ``widowControl``. Allow first/last line to display on a separate page, *true* or *false*.
88
91
- ``contextualSpacing``. Ignore Spacing Above and Below When Using Identical Styles, *true* or *false*.
89
92
- ``bidi``. Right to Left Paragraph Layout, *true* or *false*.
90
93
- ``shading``. Paragraph Shading.
91
94
- ``textAlignment``. Vertical Character Alignment on Line.
92
-
See ``\PhpOffice\PhpWord\SimpleType\TextAlignment`` class for possible values.
95
+
See ``\PhpOffice\PhpWord\SimpleType\TextAlignment`` class constants for possible values.
93
96
94
97
.. _table-style:
95
98
@@ -99,7 +102,7 @@ Table
99
102
Available Table style options:
100
103
101
104
- ``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.
105
+
See ``\PhpOffice\PhpWord\SimpleType\JcTable`` and ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
103
106
- ``bgColor``. Background color, e.g. '9966CC'.
104
107
- ``border(Top|Right|Bottom|Left)Color``. Border color, e.g. '9966CC'.
105
108
- ``border(Top|Right|Bottom|Left)Size``. Border size in *twip*.
@@ -168,7 +171,7 @@ Numbering level
168
171
Available NumberingLevel style options:
169
172
170
173
- ``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.
174
+
See ``\PhpOffice\PhpWord\SimpleType\Jc`` class constants for possible values.
172
175
- ``font``. Font name.
173
176
- ``format``. Numbering format bullet\|decimal\|upperRoman\|lowerRoman\|upperLetter\|lowerLetter.
174
177
- ``hanging``. See paragraph style.
@@ -190,6 +193,14 @@ Available Chart style options:
190
193
- ``width``. Width (in EMU).
191
194
- ``height``. Height (in EMU).
192
195
- ``3d``. Is 3D; applies to pie, bar, line, area, *true* or *false*.
196
+
- ``colors``. A list of colors to use in the chart.
197
+
- ``title``. The title for the chart.
198
+
- ``showLegend``. Show legend, *true* or *false*.
199
+
- ``categoryLabelPosition``. Label position for categories, *nextTo* (default), *low* or *high*.
200
+
- ``valueLabelPosition``. Label position for values, *nextTo* (default), *low* or *high*.
201
+
- ``categoryAxisTitle``. The title for the category axis.
202
+
- ``valueAxisTitle``. The title for the values axis.
203
+
- ``majorTickMarkPos``. The position for major tick marks, *in*, *out*, *cross*, *none* (default).
193
204
- ``showAxisLabels``. Show labels for axis, *true* or *false*.
194
205
- ``gridX``. Show Gridlines for X-Axis, *true* or *false*.
195
206
- ``gridY``. Show Gridlines for Y-Axis, *true* or *false*.
0 commit comments