Class \avadim\FastExcelWriter\Style\Style

Source: 6.19.2 · 0608684

On this page


setAlignLeft()


php
public function setAlignLeft(): Style

Apply left alignment to content

Parameters

None


setAlignRight()


php
public function setAlignRight(): Style

Apply right alignment to content

Parameters

None


setBgColor()


php
public function setBgColor(string $color, ?string $pattern = null): Style

Alias of 'setFillColor()'

Parameters

  • string $color
  • string|null $pattern

setBorder()


php
public function setBorder(string $style, ?string $color = '#000000'): Style

Sets all borders style

Parameters

  • string $style
  • string|null $color

setBorderBottom()


php
public function setBorderBottom(string $style, 
                                ?string $color = '#000000'): Style

Styles and color for bottom border

Parameters

  • string $style
  • string|null $color

setBorderLeft()


php
public function setBorderLeft(string $style, 
                              ?string $color = '#000000'): Style

Styles and color for left border

Parameters

  • string $style
  • string|null $color

setBorderRight()


php
public function setBorderRight(string $style, 
                               ?string $color = '#000000'): Style

Styles and color for right border

Parameters

  • string $style
  • string|null $color

setBorderTop()


php
public function setBorderTop(string $style, ?string $color = '#000000'): Style

Styles and color for top border

Parameters

  • string $style
  • string|null $color

setColor()


php
public function setColor(string $color): Style

Alias of 'setFontColor()'

Parameters

  • string $color

setFillColor()


php
public function setFillColor(string $color, ?string $pattern = null): Style

Fill background color

Parameters

  • string $color
  • string|null $pattern

setFillGradient()


php
public function setFillGradient(string $color1, string $color2, 
                                ?int $degree = null): Style

Fill background by gradient

Parameters

  • string $color1
  • string $color2
  • int|null $degree

setFont()


php
public function setFont(string $fontName, ?int $fontSize = null, 
                        ?string $fontStyle = null, 
                        ?string $fontColor = null): Style

Font name, size, style and color

Parameters

  • string $fontName
  • int|null $fontSize
  • string|null $fontStyle
  • string|null $fontColor

setFontColor()


php
public function setFontColor(string $color): Style

Font color

Parameters

  • string $color

setFontName()


php
public function setFontName(string $fontName): Style

Font name

Parameters

  • string $fontName

setFontSize()


php
public function setFontSize(float $fontSize): Style

Font size

Parameters

  • float $fontSize

setFontStyle()


php
public function setFontStyle(string $fontStyle): Style

Font style

Parameters

  • string $fontStyle

setFontStyleBold()


php
public function setFontStyleBold(): Style

Bold font

Parameters

None


setFontStyleItalic()


php
public function setFontStyleItalic(): Style

Italic font

Parameters

None


setFontStyleStrikethrough()


php
public function setFontStyleStrikethrough(): Style

Sets strikethrough

Parameters

None


setFontStyleUnderline()


php
public function setFontStyleUnderline(?bool $double = false): Style

Sets underline

Parameters

  • bool|null $double

setFormat()


php
public function setFormat($format): Style

Sets format

Parameters

  • string|array $format

setIndentDistributed()


php
public function setIndentDistributed(int $indent): Style

Indent distributed

Parameters

  • int $indent

setIndentLeft()


php
public function setIndentLeft(int $indent): Style

Indent left

Parameters

  • int $indent

setIndentRight()


php
public function setIndentRight(int $indent): Style

Indent right

Parameters

  • int $indent

setTextAlign()


php
public function setTextAlign(string $textAlign, 
                             ?string $verticalAlign = null): Style

Horizontal and vertical content align

Parameters

  • string $textAlign
  • string|null $verticalAlign

setTextCenter()


php
public function setTextCenter(): Style

Center content by horizontal and vertical

Parameters

None


setTextColor()


php
public function setTextColor(string $color): Style

Another alias of 'setFontColor()'

Parameters

  • string $color

setTextRotation()


php
public function setTextRotation(int $degrees): Style

Text rotation

Parameters

  • int $degrees

setTextWrap()


php
public function setTextWrap(?bool $textWrap = true): Style

Text wrap option

Parameters

  • bool|null $textWrap

setVerticalAlign()


php
public function setVerticalAlign(string $verticalAlign): Style

Vertical content align

Parameters

  • string $verticalAlign

toArray()


php
public function toArray(): array

Return style properties as array

Parameters

None


FastExcelWriter 6.19.2 · Search this library and version.

Loading search…

Could not load search. Please try again.

No results. Try another word or method name.