You are here

public static function PHPExcel_Shared_Font::setAutoSizeMethod in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php \PHPExcel_Shared_Font::setAutoSizeMethod()

* Set autoSize method * *

Parameters

string $pValue: * @return boolean Success or failure

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Font.php, line 197

Class

PHPExcel_Shared_Font
PHPExcel_Shared_Font

Code

public static function setAutoSizeMethod($pValue = self::AUTOSIZE_METHOD_APPROX) {
  if (!in_array($pValue, self::$_autoSizeMethods)) {
    return FALSE;
  }
  self::$autoSizeMethod = $pValue;
  return TRUE;
}