Skip to content

Commit c121f2d

Browse files
committed
#218 : PowerPoint2007 : Support text direction in Alignment for Table (Docs)
1 parent b4e3a79 commit c121f2d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/shapes_table.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,25 @@ For defining margins of cell, you can use the `setMargin*` method of a Alignment
6666
->setMarginTop(80);
6767
6868
69+
Define the text direction of a cell
70+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71+
For defining the text direction of cell, you can use the `setTextDirection` method of the `getAlignment` method of a Cell object.
72+
The width is in pixels.
73+
74+
.. code-block:: php
75+
76+
$tableShape = $slide->createTableShape($columns);
77+
$row = $tableShape->createRow();
78+
$cellA1 = $row->nextCell();
79+
$cellA1->getAlignment()->setTextDirection(\PhpOffice\PhpPresentation\Style\Alignment::TEXT_DIRECTION_VERTICAL_270);
80+
81+
6982
Define the width of a cell
7083
~~~~~~~~~~~~~~~~~~~~~~~~~~
7184
The width of cells are defined by the width of cell of the first row.
7285
If not defined, all cells widths are calculated from the width of the shape and the number of columns.
7386

74-
For defining the width of cell, you can use the `setWidth` method of a Cell object.
87+
For defining the width of cell, you can use the `setWidth` method of a Cell object.
7588
The width is in pixels.
7689

7790
.. code-block:: php

0 commit comments

Comments
 (0)