PHPExcel classes » \PHPExcel_RichText_Run

PHPExcel_RichText_Run

category | PHPExcel
package | PHPExcel_RichText
copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

### Methods

## Implement PHP __clone to create a deep clone, not just a shallow copy.

    __clone()

## Create a new PHPExcel_RichText_Run instance

    __construct(string $pText)

### Parameters

#### $pText

`string`

Text

## Get font

    getFont() : \PHPExcel_Style_Font

### Returns

`\PHPExcel_Style_Font`

## Get hash code

    getHashCode() : string

### Returns

`string`Hash code

## Get text

    getText() : string

Inherited

inherited_from | \PHPExcel_RichText_ITextElement::getText()

### Returns

`string`Text

## Set font

    setFont(\PHPExcel_Style_Font $pFont) : \PHPExcel_RichText_ITextElement

### Parameters

#### $pFont

`\PHPExcel_Style_Font`

Font

### Exceptions

`\PHPExcel_Exception` |

### Returns

`\PHPExcel_RichText_ITextElement`

## Set text

    setText($pText) : \PHPExcel_RichText_ITextElement

Inherited

inherited_from | \PHPExcel_RichText_ITextElement::setText()

### Parameters

#### $pText

string Text

### Returns

`\PHPExcel_RichText_ITextElement`

### Properties

##

    $_font : \PHPExcel_Style_Font

##

    $_text : string

Inherited

inherited_from | \PHPExcel_RichText_TextElement::$$_text