PHP 클래스 Box\Spout\Writer\Style\StyleBuilder

파일 보기 프로젝트 열기: box/spout

보호된 프로퍼티들

프로퍼티 타입 설명
$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