You are here

public function PHPExcel_RichText::createTextRun in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/RichText.php \PHPExcel_RichText::createTextRun()

Create text run

Parameters

string $pText Text:

Return value

PHPExcel_RichText_Run

Throws

PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/RichText.php, line 104

Class

PHPExcel_RichText
PHPExcel_RichText

Code

public function createTextRun($pText = '') {
  $objText = new PHPExcel_RichText_Run($pText);
  $this
    ->addText($objText);
  return $objText;
}