You are here

public function PHPExcel_Cell::getMergeRange in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php \PHPExcel_Cell::getMergeRange()

* If this cell is in a merge range, then return the range * *

Return value

string

2 calls to PHPExcel_Cell::getMergeRange()
PHPExcel_Cell::isInMergeRange in vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php
* Is this cell in a merge range * *
PHPExcel_Cell::isMergeRangeValueCell in vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php
* Is this cell the master (top left cell) in a merge range (that holds the actual data value) * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php, line 522

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public function getMergeRange() {
  foreach ($this
    ->getWorksheet()
    ->getMergeCells() as $mergeRange) {
    if ($this
      ->isInRange($mergeRange)) {
      return $mergeRange;
    }
  }
  return false;
}