#289 : Update elements.rst

This commit is contained in:
Progi1984 2014-06-24 10:36:58 +02:00
parent 6e175abfcd
commit a5c857f749
1 changed files with 17 additions and 1 deletions

View File

@ -397,7 +397,23 @@ To be completed.
Lines Lines
----- -----
To be completed. Line elements can be added to sections by using ``addLine``.
.. code-block:: php
$linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => 635552);
$section->addLine($lineStyle)
Available line style attributes:
- ``weight`` Line width in twips
- ``color`` Defines the color of stroke
- ``dash`` Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot
- ``beginArrow`` Start type of arrow: block, open, classic, diamond, oval
- ``endArrow`` End type of arrow: block, open, classic, diamond, ovel
- ``width`` Line-object width in pt
- ``height`` Line-object height in pt
- ``flip`` Flip the line element: true, false
Shapes Shapes
------ ------