Skip to content

Commit a5c857f

Browse files
committed
#289 : Update elements.rst
1 parent 6e175ab commit a5c857f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/elements.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,23 @@ To be completed.
397397
Lines
398398
-----
399399

400-
To be completed.
400+
Line elements can be added to sections by using ``addLine``.
401+
402+
.. code-block:: php
403+
404+
$linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => 635552);
405+
$section->addLine($lineStyle)
406+
407+
Available line style attributes:
408+
409+
- ``weight`` Line width in twips
410+
- ``color`` Defines the color of stroke
411+
- ``dash`` Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot
412+
- ``beginArrow`` Start type of arrow: block, open, classic, diamond, oval
413+
- ``endArrow`` End type of arrow: block, open, classic, diamond, ovel
414+
- ``width`` Line-object width in pt
415+
- ``height`` Line-object height in pt
416+
- ``flip`` Flip the line element: true, false
401417

402418
Shapes
403419
------

0 commit comments

Comments
 (0)