\PhpOffice\PhpSpreadsheet\RichTextRun

Summary

Methods
Properties
Constants
__construct()
getText()
setText()
getFont()
getHashCode()
__clone()
setFont()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$text
$font
N/A

Properties

$text

$text : string

Text.

Type

string

$font

$font : \PhpOffice\PhpSpreadsheet\Style\Font

Font.

Type

Font

Methods

__construct()

__construct(string  $pText = '') : mixed

Create a new Run instance.

Parameters

string $pText

Text

Returns

mixed —

getText()

getText() : string

Get text.

Returns

string —

Text

setText()

setText( $text) : $this

Set text.

Parameters

$text

string Text

Returns

$this —

getFont()

getFont() : null|\PhpOffice\PhpSpreadsheet\Style\Font

Get font.

Returns

null|\PhpOffice\PhpSpreadsheet\Style\Font —

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code

__clone()

__clone() : mixed

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

Returns

mixed —

setFont()

setFont(\PhpOffice\PhpSpreadsheet\Style\Font  $pFont = null) : $this

Set font.

Parameters

\PhpOffice\PhpSpreadsheet\Style\Font $pFont

Font

Returns

$this —