Method | Description | |
---|---|---|
__construct ( ) | Create a new \PhpOffice\PhpPresentation\Shape\RichText instance | |
__toString ( ) : string | Convert to string | |
addText ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface $pText = null ) : |
Add text | |
createBreak ( ) : |
Create break | |
createParagraph ( ) : |
Create paragraph | |
createText ( string $pText = '' ) : |
Create text (can not be formatted !) | |
createTextRun ( string $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\Run | Create text run (can be formatted) | |
getActiveParagraph ( ) : |
Get active paragraph | |
getActiveParagraphIndex ( ) : integer | Get active paragraph index | |
getAutoFit ( ) : string | Get autofit | |
getColumns ( ) : integer | Get columns | |
getFontScale ( ) : float | Get pourcentage of fontScale | |
getHashCode ( ) : string | Get hash code | |
getHorizontalOverflow ( ) : string | Get horizontal overflow | |
getInsetBottom ( ) : float | Get bottom inset | |
getInsetLeft ( ) : float | Get left inset | |
getInsetRight ( ) : float | Get right inset | |
getInsetTop ( ) : float | Get top inset | |
getLineSpaceReduction ( ) : float | Get pourcentage of the line space reduction | |
getParagraph ( integer $index ) : |
Get paragraph | |
getParagraphs ( ) : |
Get paragraphs | |
getPlainText ( ) : string | Get plain text | |
getVerticalOverflow ( ) : string | Get vertical overflow | |
getWrap ( ) : string | Get text wrapping | |
hasAutoShrinkHorizontal ( ) : boolean | Get horizontal auto shrink | |
hasAutoShrinkVertical ( ) : boolean | Set vertical auto shrink | |
isUpright ( ) : boolean | Get upright | |
isVertical ( ) : boolean | Get vertical | |
setActiveParagraph ( integer $index ) : |
Set active paragraph | |
setAutoFit ( $value = self::AUTOFIT_DEFAULT, $fontScale = null, $lnSpcReduction = null ) : |
Set autofit | |
setAutoShrinkHorizontal ( boolean $value = null ) | Set horizontal auto shrink | |
setAutoShrinkVertical ( boolean $value = null ) | Set vertical auto shrink | |
setColumns ( $value = 1 ) : |
Set columns | |
setHorizontalOverflow ( $value = self::OVERFLOW_OVERFLOW ) : |
Set horizontal overflow | |
setInsetBottom ( $value = 4.8 ) : |
Set bottom inset | |
setInsetLeft ( $value = 9.6 ) : |
Set left inset | |
setInsetRight ( $value = 9.6 ) : |
Set left inset | |
setInsetTop ( $value = 4.8 ) : |
Set top inset | |
setParagraphs ( |
Set paragraphs | |
setUpright ( $value = false ) : |
Set vertical | |
setVertical ( $value = false ) : |
Set vertical | |
setVerticalOverflow ( $value = self::OVERFLOW_OVERFLOW ) : |
Set vertical overflow | |
setWrap ( $value = self::WRAP_SQUARE ) : |
Set text wrapping |
public __construct ( ) |
public addText ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface $pText = null ) : |
||
$pText | PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface | Rich text element |
return |
public createBreak ( ) : |
||
return |
public createParagraph ( ) : |
||
return |
public createText ( string $pText = '' ) : |
||
$pText | string | Text |
return |
public createTextRun ( string $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\Run | ||
$pText | string | Text |
return | PhpOffice\PhpPresentation\Shape\RichText\Run |
public getActiveParagraph ( ) : |
||
return |
public getActiveParagraphIndex ( ) : integer | ||
return | integer |
public getFontScale ( ) : float | ||
return | float |
public getHorizontalOverflow ( ) : string | ||
return | string |
public getLineSpaceReduction ( ) : float | ||
return | float |
public getParagraph ( integer $index ) : |
||
$index | integer | |
return |
public getParagraphs ( ) : |
||
return |
public getVerticalOverflow ( ) : string | ||
return | string |
public hasAutoShrinkHorizontal ( ) : boolean | ||
return | boolean |
public hasAutoShrinkVertical ( ) : boolean | ||
return | boolean |
public setActiveParagraph ( integer $index ) : |
||
$index | integer | |
return |
public setAutoFit ( $value = self::AUTOFIT_DEFAULT, $fontScale = null, $lnSpcReduction = null ) : |
||
$value | string | |
$fontScale | float | |
$lnSpcReduction | float | |
return |
public setAutoShrinkHorizontal ( boolean $value = null ) | ||
$value | boolean |
public setAutoShrinkVertical ( boolean $value = null ) | ||
$value | boolean |
public setColumns ( $value = 1 ) : |
||
$value | int | |
return |
public setHorizontalOverflow ( $value = self::OVERFLOW_OVERFLOW ) : |
||
$value | string | |
return |
public setInsetBottom ( $value = 4.8 ) : |
||
$value | float | |
return |
public setInsetLeft ( $value = 9.6 ) : |
||
$value | float | |
return |
public setInsetRight ( $value = 9.6 ) : |
||
$value | float | |
return |
public setInsetTop ( $value = 4.8 ) : |
||
$value | float | |
return |
public setParagraphs ( |
||
$paragraphs | Array of paragraphs | |
return |
public setUpright ( $value = false ) : |
||
$value | boolean | |
return |
public setVertical ( $value = false ) : |
||
$value | boolean | |
return |
public setVerticalOverflow ( $value = self::OVERFLOW_OVERFLOW ) : |
||
$value | string | |
return |
public setWrap ( $value = self::WRAP_SQUARE ) : |
||
$value | string | |
return |