lib/PHPRtfLite/Table.php
public function setTextAlignmentForCellRange($alignment, $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->setTextAlignment($alignment);
            }
        }
    }
public function setTextAlignmentForCellRange($alignment, $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->setTextAlignment($alignment);
            }
        }
    }
public function setTextAlignmentForCellRange ( $ alignment , $ 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 -> setTextAlignment ( $ alignment ) ; } } }
sets alignments to empty cells of a given cell range

@param   string  $alignment      alignment of cell. The method PHPRtfLite_Table_Cell->writeToCell() overrides it with PHPRtfLite_ParFormat alignment.<br>
Alignment is represented by class constants PHPRtfLite_Container::TEXT_ALIGN_*<br>
Possible values:<br>
PHPRtfLite_Container::TEXT_ALIGN_LEFT    => 'left'   - left alignment<br>
PHPRtfLite_Container::TEXT_ALIGN_RIGHT   => 'right'  - right alignment<br>
PHPRtfLite_Container::TEXT_ALIGN_CENTER  => 'center' - center alignment<br>
PHPRtfLite_Container::TEXT_ALIGN_JUSTIFY => 'justify' - justify alignment
@param   integer $startRow       start row
@param   integer $startColumn    start column
@param   integer $endRow         end row, if null, then text alignment is set only to the row range.
@param   integer $endColumn      end column, if null, then text alignment is set just to the column range.
sets alignments to empty cells of a given cell range