|
Style | $style |
| Style to be created.
|
|
◆ build()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::build |
( |
| ) |
|
Returns the configured style.
The style is cached and can be reused.
- Return values
-
◆ setBackgroundColor()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setBackgroundColor |
( |
| $color | ) |
|
Sets a background color.
- Parameters
-
- See also
- Color)
- Return values
-
◆ setBorder()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setBorder |
( |
Border | $border | ) |
|
Set a border.
- Parameters
-
- Return values
-
◆ setCellAlignment()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setCellAlignment |
( |
| $cellAlignment | ) |
|
Sets the cell alignment.
- Parameters
-
string | $cellAlignment | The cell alignment |
- Exceptions
-
InvalidArgumentException | If the given cell alignment is not valid |
- Return values
-
◆ setFontBold()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontBold |
( |
| ) |
|
Makes the font bold.
- Return values
-
◆ setFontColor()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontColor |
( |
| $fontColor | ) |
|
Sets the font color.
- Parameters
-
string | $fontColor | ARGB color ( |
- See also
- Color)
- Return values
-
◆ setFontItalic()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontItalic |
( |
| ) |
|
Makes the font italic.
- Return values
-
◆ setFontName()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontName |
( |
| $fontName | ) |
|
Sets the font name.
- Parameters
-
string | $fontName | Name of the font to use |
- Return values
-
◆ setFontSize()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontSize |
( |
| $fontSize | ) |
|
Sets the font size.
- Parameters
-
int | $fontSize | Font size, in pixels |
- Return values
-
◆ setFontStrikethrough()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontStrikethrough |
( |
| ) |
|
Makes the font struck through.
- Return values
-
◆ setFontUnderline()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFontUnderline |
( |
| ) |
|
Makes the font underlined.
- Return values
-
◆ setFormat()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setFormat |
( |
| $format | ) |
|
Sets a format.
- Parameters
-
- Return values
-
◆ setShouldWrapText()
Box\Spout\Writer\Common\Creator\Style\StyleBuilder::setShouldWrapText |
( |
| $shouldWrap = true | ) |
|
Makes the text wrap in the cell if requested.
- Parameters
-
bool | $shouldWrap | Should the text be wrapped |
- Return values
-
The documentation for this class was generated from the following file:
- lib/spout/src/Spout/Writer/Common/Creator/Style/StyleBuilder.php