From a5c857f7491522699da3ac00c47f5b7d98ed5339 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Tue, 24 Jun 2014 10:36:58 +0200 Subject: [PATCH] #289 : Update elements.rst --- docs/elements.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/elements.rst b/docs/elements.rst index e4baf70e..2f2fb91c 100644 --- a/docs/elements.rst +++ b/docs/elements.rst @@ -397,7 +397,23 @@ To be completed. 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 ------