PHP Класс Box\Spout\Writer\Style\StyleBuilder

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$style Style to be created

Открытые методы

Метод Описание
__construct ( )
build ( ) : Style Returns the configured style. The style is cached and can be reused.
setBackgroundColor ( string $color ) : StyleBuilder Sets a background color
setBorder ( Box\Spout\Writer\Style\Border $border ) Set a border
setFontBold ( ) : StyleBuilder Makes the font bold.
setFontColor ( string $fontColor ) : StyleBuilder Sets the font color.
setFontItalic ( ) : StyleBuilder Makes the font italic.
setFontName ( string $fontName ) : StyleBuilder Sets the font name.
setFontSize ( integer $fontSize ) : StyleBuilder Sets the font size.
setFontStrikethrough ( ) : StyleBuilder Makes the font struck through.
setFontUnderline ( ) : StyleBuilder Makes the font underlined.
setShouldWrapText ( boolean $shouldWrap = true ) : StyleBuilder Makes the text wrap in the cell if requested

Описание методов

__construct() публичный Метод

public __construct ( )

build() публичный Метод

Returns the configured style. The style is cached and can be reused.
public build ( ) : Style
Результат Style

setBackgroundColor() публичный Метод

Sets a background color
public setBackgroundColor ( string $color ) : StyleBuilder
$color string ARGB color (@see Color)
Результат StyleBuilder

setBorder() публичный Метод

Set a border
public setBorder ( Box\Spout\Writer\Style\Border $border )
$border Box\Spout\Writer\Style\Border

setFontBold() публичный Метод

Makes the font bold.
public setFontBold ( ) : StyleBuilder
Результат StyleBuilder

setFontColor() публичный Метод

Sets the font color.
public setFontColor ( string $fontColor ) : StyleBuilder
$fontColor string ARGB color (@see Color)
Результат StyleBuilder

setFontItalic() публичный Метод

Makes the font italic.
public setFontItalic ( ) : StyleBuilder
Результат StyleBuilder

setFontName() публичный Метод

Sets the font name.
public setFontName ( string $fontName ) : StyleBuilder
$fontName string Name of the font to use
Результат StyleBuilder

setFontSize() публичный Метод

Sets the font size.
public setFontSize ( integer $fontSize ) : StyleBuilder
$fontSize integer Font size, in pixels
Результат StyleBuilder

setFontStrikethrough() публичный Метод

Makes the font struck through.
public setFontStrikethrough ( ) : StyleBuilder
Результат StyleBuilder

setFontUnderline() публичный Метод

Makes the font underlined.
public setFontUnderline ( ) : StyleBuilder
Результат StyleBuilder

setShouldWrapText() публичный Метод

Makes the text wrap in the cell if requested
public setShouldWrapText ( boolean $shouldWrap = true ) : StyleBuilder
$shouldWrap boolean Should the text be wrapped
Результат StyleBuilder

Описание свойств

$style защищенное свойство

Style to be created
protected $style