You are here

public static function PHPExcel_Cell::rangeDimension in Loft Data Grids 7.2

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

* Calculate range dimension * *

Parameters

string $pRange Cell range (e.g. A1:A1): * @return array Range dimension (width, height)

1 call to PHPExcel_Cell::rangeDimension()
PHPExcel_Chart_DataSeriesValues::refresh in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php

File

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

Class

PHPExcel_Cell
PHPExcel_Cell

Code

public static function rangeDimension($pRange = 'A1:A1') {

  // Calculate range outer borders
  list($rangeStart, $rangeEnd) = self::rangeBoundaries($pRange);
  return array(
    $rangeEnd[0] - $rangeStart[0] + 1,
    $rangeEnd[1] - $rangeStart[1] + 1,
  );
}