@@ -61,7 +61,7 @@ Legend:
61
61
Texts
62
62
-----
63
63
64
- Text can be added by using ``addText `` and ``addTextRun `` method .
64
+ Text can be added by using ``addText `` and ``addTextRun `` methods .
65
65
``addText `` is used for creating simple paragraphs that only contain texts with the same style.
66
66
``addTextRun `` is used for creating complex paragraphs that contain text with different style (some bold, other
67
67
italics, etc) or other elements, e.g. images or links. The syntaxes are as follow:
@@ -155,13 +155,18 @@ method or using the ``pageBreakBefore`` style of paragraph.
155
155
Lists
156
156
-----
157
157
158
- To add a list item use the function ``addListItem ``.
158
+ Lists can be added by using ``addListItem `` and ``addListItemRun `` methods.
159
+ ``addListItem `` is used for creating lists that only contain plain text.
160
+ ``addListItemRun `` is used for creating complex list items that contains texts
161
+ with different style (some bold, other italics, etc) or other elements, e.g.
162
+ images or links. The syntaxes are as follow:
159
163
160
164
Basic usage:
161
165
162
166
.. code-block :: php
163
167
164
168
$section->addListItem($text, [$depth], [$fontStyle], [$listStyle], [$paragraphStyle]);
169
+ $listItemRun = $section->addListItemRun([$depth], [$listStyle], [$paragraphStyle])
165
170
166
171
Parameters:
167
172
@@ -172,6 +177,8 @@ Parameters:
172
177
TYPE\_ ALPHANUM, TYPE\_ BULLET\_ FILLED, etc. See list of constants in PHPWord\\ Style\\ ListItem.
173
178
- ``$paragraphStyle ``. See :ref: `paragraph-style `.
174
179
180
+ See ``Sample_09_Tables.php `` for more code sample.
181
+
175
182
Advanced usage:
176
183
177
184
You can also create your own numbering style by changing the ``$listStyle `` parameter with the name of your numbering style.
0 commit comments