public function PHPExcel_Worksheet_HeaderFooterDrawing::setHeight in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php \PHPExcel_Worksheet_HeaderFooterDrawing::setHeight()
Set Height
Parameters
int $pValue:
Return value
PHPExcel_Worksheet_HeaderFooterDrawing
Overrides PHPExcel_Worksheet_BaseDrawing::setHeight
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ HeaderFooterDrawing.php, line 205
Class
- PHPExcel_Worksheet_HeaderFooterDrawing
- PHPExcel_Worksheet_HeaderFooterDrawing
Code
public function setHeight($pValue = 0) {
// Resize proportional?
if ($this->_resizeProportional && $pValue != 0) {
$ratio = $this->_width / $this->_height;
$this->_width = round($ratio * $pValue);
}
// Set height
$this->_height = $pValue;
return $this;
}