Skip to content

Commit

Permalink
PHPOffice#218 : PowerPoint2007 : Support text direction in Alignment …
Browse files Browse the repository at this point in the history
…for Table
  • Loading branch information
Progi1984 committed Mar 6, 2017
1 parent 735dbe5 commit b4e3a79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpmd.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- PptSlides needs more coupling (default: 13) -->
<!-- Writer/Office2007/AbstractSlide needs more coupling (default: 13) -->
<properties>
<property name="minimum" value="32" />
<property name="minimum" value="35" />
</properties>
</rule>
<rule ref="rulesets/design.xml/NumberOfChildren">
Expand Down
4 changes: 3 additions & 1 deletion samples/Sample_04_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
->setStartColor(new Color('FFE06B20'))
->setEndColor(new Color('FFE06B20'));
$row->nextCell()->createTextRun('R2C1');
$row->getCell()->getActiveParagraph()->getAlignment()->setMarginLeft(30);
$row->getCell()->getActiveParagraph()->getAlignment()
->setMarginLeft(30)
->setTextDirection(\PhpOffice\PhpPresentation\Style\Alignment::TEXT_DIRECTION_VERTICAL_270);
$row->nextCell()->createTextRun('R2C2');
$row->nextCell()->createTextRun('R2C3');

Expand Down

0 comments on commit b4e3a79

Please sign in to comment.