Skip to content

Commit

Permalink
Merge pull request PHPOffice#289 from chrissharkman/patch-1
Browse files Browse the repository at this point in the history
Update elements.rst
  • Loading branch information
Progi1984 committed Jun 24, 2014
2 parents 38d3d7b + f8389c5 commit d8fbac6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/elements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -493,4 +493,20 @@ To be completed
Line
------

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

0 comments on commit d8fbac6

Please sign in to comment.