lib/PHPRtfLite/Table.php
public function setVerticalAlignmentForCellRange(
        $verticalAlignment,
        $startRow,
        $startColumn,
        $endRow = null,
        $endColumn = null
    ) {
        list($startRow, $startColumn, $endRow, $endColumn)
                = PHPRtfLite_Table::getValidCellRange($startRow, $startColumn, $endRow, $endColumn);

        if ($this->checkIfCellExists($startRow, $startColumn)
            && $this->checkIfCellExists($endRow, $endColumn))
        {
            $cells = $this->getCellsByCellRange($startRow, $startColumn, $endRow, $endColumn);
            foreach ($cells as $cell) {
                $cell->setVerticalAlignment($verticalAlignment);
            }
        }
    }
public function setVerticalAlignmentForCellRange(
        $verticalAlignment,
        $startRow,
        $startColumn,
        $endRow = null,
        $endColumn = null
    ) {
        list($startRow, $startColumn, $endRow, $endColumn)
                = PHPRtfLite_Table::getValidCellRange($startRow, $startColumn, $endRow, $endColumn);

        if ($this->checkIfCellExists($startRow, $startColumn)
            && $this->checkIfCellExists($endRow, $endColumn))
        {
            $cells = $this->getCellsByCellRange($startRow, $startColumn, $endRow, $endColumn);
            foreach ($cells as $cell) {
                $cell->setVerticalAlignment($verticalAlignment);
            }
        }
    }
public function setVerticalAlignmentForCellRange ( $ verticalAlignment , $ startRow , $ startColumn , $ endRow = null , $ endColumn = null ) { list ( $ startRow , $ startColumn , $ endRow , $ endColumn ) = PHPRtfLite_Table :: getValidCellRange ( $ startRow , $ startColumn , $ endRow , $ endColumn ) ; if ( $ this -> checkIfCellExists ( $ startRow , $ startColumn ) && $ this -> checkIfCellExists ( $ endRow , $ endColumn ) ) { $ cells = $ this -> getCellsByCellRange ( $ startRow , $ startColumn , $ endRow , $ endColumn ) ; foreach ( $ cells as $ cell ) { $ cell -> setVerticalAlignment ( $ verticalAlignment ) ; } } }
sets vertical alignment to cells of a given cell range

@param   string  $verticalAlignment Vertical alignment of cell (default top). Represented by PHPRtfLite_Container::VERTICAL_ALIGN_*<br>
Possible values:<br>
PHPRtfLite_Container::VERTICAL_ALIGN_TOP     => 'top'    - top alignment;<br>
PHPRtfLite_Container::VERTICAL_ALIGN_CENTER  => 'center' - center alignment;<br>
PHPRtfLite_Container::VERTICAL_ALIGN_BOTTOM  => 'bottom' - bottom alignment.
@param   integer $startRow       start row
@param   integer $startColumn    start column
@param   integer $endRow         end row, if null, then vertical alignment is set only to the row range.
@param   integer $endColumn      end column, if null, then vertical alignment is set just to the column range.
sets vertical alignment to cells of a given cell range