Skip to content

Commit d8fbac6

Browse files
committed
Merge pull request #289 from chrissharkman/patch-1
Update elements.rst
2 parents 38d3d7b + f8389c5 commit d8fbac6

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
@@ -493,4 +493,20 @@ To be completed
493493
Line
494494
------
495495

496-
To be completed
496+
Line elements can be added to sections by using ``addLine``.
497+
498+
.. code-block:: php
499+
500+
$linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => 635552);
501+
$section->addLine($lineStyle)
502+
503+
Available line style attributes:
504+
505+
- ``weight`` Line width in twips
506+
- ``color`` Defines the color of stroke
507+
- ``dash`` Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot
508+
- ``beginArrow`` Start type of arrow: block, open, classic, diamond, oval
509+
- ``endArrow`` End type of arrow: block, open, classic, diamond, ovel
510+
- ``width`` Line-object width in pt
511+
- ``height`` Line-object height in pt
512+
- ``flip`` Flip the line element: true, false

0 commit comments

Comments
 (0)