You are here

public function PHPExcel_Style_Font::setSubScript in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php \PHPExcel_Style_Font::setSubScript()

* Set SubScript * *

Parameters

boolean $pValue: * @return PHPExcel_Style_Font

1 call to PHPExcel_Style_Font::setSubScript()
PHPExcel_Style_Font::applyFromArray in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php
* Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( * array( * 'name' => 'Arial', * 'bold' => TRUE, …

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php, line 400

Class

PHPExcel_Style_Font
PHPExcel_Style_Font

Code

public function setSubScript($pValue = false) {
  if ($pValue == '') {
    $pValue = false;
  }
  if ($this->_isSupervisor) {
    $styleArray = $this
      ->getStyleArray(array(
      'subScript' => $pValue,
    ));
    $this
      ->getActiveSheet()
      ->getStyle($this
      ->getSelectedCells())
      ->applyFromArray($styleArray);
  }
  else {
    $this->_subScript = $pValue;
    $this->_superScript = !$pValue;
  }
  return $this;
}