TextElement
in package
implements
TextElementInterface
Rich text text element.
Table of Contents
Interfaces
- TextElementInterface
- Rich text element interface.
Properties
- $hyperlink : null|Hyperlink
- Hyperlink.
- $language : string
- $text : string
- Text.
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
- setHyperlink() : TextElement
- Set Hyperlink.
- setLanguage() : TextElement
- Set language.
- setText() : TextElementInterface
- Set text.
Properties
$hyperlink
Hyperlink.
protected
null|Hyperlink
$hyperlink
$language
protected
string
$language
$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
boolsetHyperlink()
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