Run
extends TextElement
in package
implements
TextElementInterface
Rich text run.
Table of Contents
Interfaces
- TextElementInterface
- Rich text element interface.
Properties
Methods
- __construct() : mixed
- Create a new \PhpOffice\PhpPresentation\Shape\RichText\TextElement instance.
- getFont() : Font
- Get font.
- getHashCode() : string
- Get hash code.
- getHyperlink() : Hyperlink
- getLanguage() : string
- Get language.
- getText() : string
- Get text.
- hasHyperlink() : bool
- setFont() : self
- Set font.
- setHyperlink() : TextElement
- Set Hyperlink.
- setLanguage() : TextElement
- Set language.
- setText() : TextElementInterface
- Set text.
Properties
$hyperlink
Hyperlink.
protected
null|Hyperlink
$hyperlink
$language
protected
string
$language
$font
Font.
private
Font
$font
$text
Text.
private
string
$text
Methods
__construct()
Create a new \PhpOffice\PhpPresentation\Shape\RichText\TextElement instance.
public
__construct([string $pText = '' ]) : mixed
Parameters
- $pText : string = ''
-
Text
getFont()
Get font.
public
getFont() : Font
Return values
FontgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getHyperlink()
public
getHyperlink() : Hyperlink
Return values
HyperlinkgetLanguage()
Get language.
public
getLanguage() : string
Return values
stringgetText()
Get text.
public
getText() : string
Return values
string —Text
hasHyperlink()
public
hasHyperlink() : bool
Return values
boolsetFont()
Set font.
public
setFont([Font|null $pFont = null ]) : self
Parameters
- $pFont : Font|null = null
Return values
selfsetHyperlink()
Set Hyperlink.
public
setHyperlink([Hyperlink|null $pHyperlink = null ]) : TextElement
Parameters
- $pHyperlink : Hyperlink|null = null
Return values
TextElementsetLanguage()
Set language.
public
setLanguage(string $language) : TextElement
Parameters
- $language : string
Return values
TextElementsetText()
Set text.
public
setText([string $pText = '' ]) : TextElementInterface
Parameters
- $pText : string = ''
-
Text value