Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
(no description)
File Size: | 568 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Font:: (24 methods):
__construct()
getSharedComponent()
getStyleArray()
applyFromArray()
getName()
setName()
getSize()
setSize()
getBold()
setBold()
getItalic()
setItalic()
getSuperscript()
setSuperscript()
getSubscript()
setSubscript()
getUnderline()
setUnderline()
getStrikethrough()
setStrikethrough()
getColor()
setColor()
getHashCode()
exportArray1()
__construct($isSupervisor = false, $isConditional = false) X-Ref |
Create a new Font. param: bool $isSupervisor Flag indicating if this is a supervisor or not param: bool $isConditional Flag indicating if this is a conditional style or not |
getSharedComponent() X-Ref |
Get the shared style component for the currently active cell in currently active sheet. Only used for style supervisor. return: Font |
getStyleArray($array) X-Ref |
Build style array from subcomponents. return: array param: array $array |
applyFromArray(array $styleArray) X-Ref |
Apply styles from array. <code> $spreadsheet->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( [ 'name' => 'Arial', 'bold' => TRUE, 'italic' => FALSE, 'underline' => \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLE, 'strikethrough' => FALSE, 'color' => [ 'rgb' => '808080' ] ] ); </code> return: $this param: array $styleArray Array containing style information |
getName() X-Ref |
Get Name. return: null|string |
setName($fontname) X-Ref |
Set Name. return: $this param: string $fontname |
getSize() X-Ref |
Get Size. return: null|float |
setSize($sizeInPoints) X-Ref |
Set Size. return: $this param: mixed $sizeInPoints A float representing the value of a positive measurement in points (1/72 of an inch) |
getBold() X-Ref |
Get Bold. return: null|bool |
setBold($bold) X-Ref |
Set Bold. return: $this param: bool $bold |
getItalic() X-Ref |
Get Italic. return: null|bool |
setItalic($italic) X-Ref |
Set Italic. return: $this param: bool $italic |
getSuperscript() X-Ref |
Get Superscript. return: null|bool |
setSuperscript(bool $superscript) X-Ref |
Set Superscript. return: $this |
getSubscript() X-Ref |
Get Subscript. return: null|bool |
setSubscript(bool $subscript) X-Ref |
Set Subscript. return: $this |
getUnderline() X-Ref |
Get Underline. return: null|string |
setUnderline($underlineStyle) X-Ref |
Set Underline. return: $this param: bool|string $underlineStyle \PhpOffice\PhpSpreadsheet\Style\Font underline type |
getStrikethrough() X-Ref |
Get Strikethrough. return: null|bool |
setStrikethrough($strikethru) X-Ref |
Set Strikethrough. return: $this param: bool $strikethru |
getColor() X-Ref |
Get Color. return: Color |
setColor(Color $color) X-Ref |
Set Color. return: $this |
getHashCode() X-Ref |
Get hash code. return: string Hash code |
exportArray1() X-Ref |
No description |