You are here

public function PHPExcel_Chart::setTopLeftPosition in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart.php \PHPExcel_Chart::setTopLeftPosition()

* Set the Top Left position for the chart * *

Parameters

string $cell: * @param integer $xOffset * @param integer $yOffset * @return PHPExcel_Chart

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart.php, line 422

Class

PHPExcel_Chart
PHPExcel_Chart

Code

public function setTopLeftPosition($cell, $xOffset = null, $yOffset = null) {
  $this->_topLeftCellRef = $cell;
  if (!is_null($xOffset)) {
    $this
      ->setTopLeftXOffset($xOffset);
  }
  if (!is_null($yOffset)) {
    $this
      ->setTopLeftYOffset($yOffset);
  }
  return $this;
}