You are here

private function PHPExcel_Writer_HTML::_mapVAlign in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php \PHPExcel_Writer_HTML::_mapVAlign()

* Map VAlign * *

Parameters

string $vAlign Vertical alignment: * @return string

1 call to PHPExcel_Writer_HTML::_mapVAlign()
PHPExcel_Writer_HTML::_createCSSStyleAlignment in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Create CSS style (PHPExcel_Style_Alignment) * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php, line 196

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _mapVAlign($vAlign) {
  switch ($vAlign) {
    case PHPExcel_Style_Alignment::VERTICAL_BOTTOM:
      return 'bottom';
    case PHPExcel_Style_Alignment::VERTICAL_TOP:
      return 'top';
    case PHPExcel_Style_Alignment::VERTICAL_CENTER:
    case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY:
      return 'middle';
    default:
      return 'baseline';
  }
}