PHP Class PhpOffice\PhpPresentation\Style\Font

Inheritance: implements PhpOffice\PhpPresentation\ComparableInterface
Afficher le fichier Open project: phpoffice/phppowerpoint Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) Create a new \PhpOffice\PhpPresentation\Style\Font
getColor ( ) : Color | SchemeColor Get Color
getHashCode ( ) : string Get hash code
getHashIndex ( ) : string Get hash index
getName ( ) : string Get Name
getSize ( ) : double Get Size
getUnderline ( ) : string Get Underline
isBold ( ) : boolean Get Bold
isItalic ( ) : boolean Get Italic
isStrikethrough ( ) : boolean Get Strikethrough
isSubScript ( ) : boolean Get SubScript
isSuperScript ( ) : boolean Get SuperScript
setBold ( boolean $pValue = false ) : Font Set Bold
setColor ( Color | SchemeColor $pValue = null ) : Font Set Color
setHashIndex ( string $value ) Set hash index
setItalic ( boolean $pValue = false ) : Font Set Italic
setName ( string $pValue = 'Calibri' ) : Font Set Name
setSize ( float | integer $pValue = 10 ) : Font Set Size
setStrikethrough ( boolean $pValue = false ) : Font Set Strikethrough
setSubScript ( boolean $pValue = false ) : Font Set SubScript
setSuperScript ( boolean $pValue = false ) : Font Set SuperScript
setUnderline ( string $pValue = self::UNDERLINE_NONE ) : Font Set Underline

Method Details

__construct() public méthode

Create a new \PhpOffice\PhpPresentation\Style\Font
public __construct ( )

getColor() public méthode

Get Color
public getColor ( ) : Color | SchemeColor
Résultat Color | SchemeColor

getHashCode() public méthode

Get hash code
public getHashCode ( ) : string
Résultat string Hash code

getHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public getHashIndex ( ) : string
Résultat string Hash index

getName() public méthode

Get Name
public getName ( ) : string
Résultat string

getSize() public méthode

Get Size
public getSize ( ) : double
Résultat double

getUnderline() public méthode

Get Underline
public getUnderline ( ) : string
Résultat string

isBold() public méthode

Get Bold
public isBold ( ) : boolean
Résultat boolean

isItalic() public méthode

Get Italic
public isItalic ( ) : boolean
Résultat boolean

isStrikethrough() public méthode

Get Strikethrough
public isStrikethrough ( ) : boolean
Résultat boolean

isSubScript() public méthode

Get SubScript
public isSubScript ( ) : boolean
Résultat boolean

isSuperScript() public méthode

Get SuperScript
public isSuperScript ( ) : boolean
Résultat boolean

setBold() public méthode

Set Bold
public setBold ( boolean $pValue = false ) : Font
$pValue boolean
Résultat Font

setColor() public méthode

Set Color
public setColor ( Color | SchemeColor $pValue = null ) : Font
$pValue Color | SchemeColor
Résultat Font

setHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public setHashIndex ( string $value )
$value string Hash index

setItalic() public méthode

Set Italic
public setItalic ( boolean $pValue = false ) : Font
$pValue boolean
Résultat Font

setName() public méthode

Set Name
public setName ( string $pValue = 'Calibri' ) : Font
$pValue string
Résultat Font

setSize() public méthode

Set Size
public setSize ( float | integer $pValue = 10 ) : Font
$pValue float | integer
Résultat Font

setStrikethrough() public méthode

Set Strikethrough
public setStrikethrough ( boolean $pValue = false ) : Font
$pValue boolean
Résultat Font

setSubScript() public méthode

Set SubScript
public setSubScript ( boolean $pValue = false ) : Font
$pValue boolean
Résultat Font

setSuperScript() public méthode

Set SuperScript
public setSuperScript ( boolean $pValue = false ) : Font
$pValue boolean
Résultat Font

setUnderline() public méthode

Set Underline
public setUnderline ( string $pValue = self::UNDERLINE_NONE ) : Font
$pValue string \PhpOffice\PhpPresentation\Style\Font underline type
Résultat Font