Property | Type | Description | |
---|---|---|---|
$style | Style to be created |
Method | Description | |
---|---|---|
__construct ( ) | ||
build ( ) : |
Returns the configured style. The style is cached and can be reused. | |
setBackgroundColor ( string $color ) : |
Sets a background color | |
setBorder ( Box\Spout\Writer\Style\Border $border ) | Set a border | |
setFontBold ( ) : |
Makes the font bold. | |
setFontColor ( string $fontColor ) : |
Sets the font color. | |
setFontItalic ( ) : |
Makes the font italic. | |
setFontName ( string $fontName ) : |
Sets the font name. | |
setFontSize ( integer $fontSize ) : |
Sets the font size. | |
setFontStrikethrough ( ) : |
Makes the font struck through. | |
setFontUnderline ( ) : |
Makes the font underlined. | |
setShouldWrapText ( boolean $shouldWrap = true ) : |
Makes the text wrap in the cell if requested |
public build ( ) : |
||
return |
public setBackgroundColor ( string $color ) : |
||
$color | string | ARGB color (@see Color) |
return |
public setBorder ( Box\Spout\Writer\Style\Border $border ) | ||
$border | Box\Spout\Writer\Style\Border |
public setFontBold ( ) : |
||
return |
public setFontColor ( string $fontColor ) : |
||
$fontColor | string | ARGB color (@see Color) |
return |
public setFontItalic ( ) : |
||
return |
public setFontName ( string $fontName ) : |
||
$fontName | string | Name of the font to use |
return |
public setFontSize ( integer $fontSize ) : |
||
$fontSize | integer | Font size, in pixels |
return |
public setFontStrikethrough ( ) : |
||
return |
public setFontUnderline ( ) : |
||
return |
public setShouldWrapText ( boolean $shouldWrap = true ) : |
||
$shouldWrap | boolean | Should the text be wrapped |
return |