Class \avadim\FastExcelWriter\Style\Style¶
- setAlignLeft() – Apply left alignment to content
- setAlignRight() – Apply right alignment to content
- setBgColor() – Alias of 'setFillColor()'
- setBorder() – Sets all borders style
- setBorderBottom() – Styles and color for bottom border
- setBorderLeft() – Styles and color for left border
- setBorderRight() – Styles and color for right border
- setBorderTop() – Styles and color for top border
- setColor() – Alias of 'setFontColor()'
- setFillColor() – Fill background color
- setFillGradient() – Fill background by gradient
- setFont() – Font name, size, style and color
- setFontColor() – Font color
- setFontName() – Font name
- setFontSize() – Font size
- setFontStyle() – Font style
- setFontStyleBold() – Bold font
- setFontStyleItalic() – Italic font
- setFontStyleStrikethrough() – Sets strikethrough
- setFontStyleUnderline() – Sets underline
- setFormat() – Sets format
- setIndentDistributed() – Indent distributed
- setIndentLeft() – Indent left
- setIndentRight() – Indent right
- setTextAlign() – Horizontal and vertical content align
- setTextCenter() – Center content by horizontal and vertical
- setTextColor() – Another alias of 'setFontColor()'
- setTextRotation() – Text rotation
- setTextWrap() – Text wrap option
- setVerticalAlign() – Vertical content align
- toArray() – Return style properties as array
setAlignLeft()¶
public function setAlignLeft(): Style
Parameters¶
None
setAlignRight()¶
public function setAlignRight(): Style
Parameters¶
None
setBgColor()¶
public function setBgColor(string $color, ?string $pattern = null): Style
Parameters¶
string $colorstring|null $pattern
setBorder()¶
public function setBorder(string $style, ?string $color = '#000000'): Style
Parameters¶
string $stylestring|null $color
setBorderBottom()¶
public function setBorderBottom(string $style,
?string $color = '#000000'): Style
Parameters¶
string $stylestring|null $color
setBorderLeft()¶
public function setBorderLeft(string $style,
?string $color = '#000000'): Style
Parameters¶
string $stylestring|null $color
setBorderRight()¶
public function setBorderRight(string $style,
?string $color = '#000000'): Style
Parameters¶
string $stylestring|null $color
setBorderTop()¶
public function setBorderTop(string $style, ?string $color = '#000000'): Style
Parameters¶
string $stylestring|null $color
setColor()¶
public function setColor(string $color): Style
Parameters¶
string $color
setFillColor()¶
public function setFillColor(string $color, ?string $pattern = null): Style
Parameters¶
string $colorstring|null $pattern
setFillGradient()¶
public function setFillGradient(string $color1, string $color2,
?int $degree = null): Style
Parameters¶
string $color1string $color2int|null $degree
setFont()¶
public function setFont(string $fontName, ?int $fontSize = null,
?string $fontStyle = null,
?string $fontColor = null): Style
Parameters¶
string $fontNameint|null $fontSizestring|null $fontStylestring|null $fontColor
setFontColor()¶
public function setFontColor(string $color): Style
Parameters¶
string $color
setFontName()¶
public function setFontName(string $fontName): Style
Parameters¶
string $fontName
setFontSize()¶
public function setFontSize(float $fontSize): Style
Parameters¶
float $fontSize
setFontStyle()¶
public function setFontStyle(string $fontStyle): Style
Parameters¶
string $fontStyle
setFontStyleBold()¶
public function setFontStyleBold(): Style
Parameters¶
None
setFontStyleItalic()¶
public function setFontStyleItalic(): Style
Parameters¶
None
setFontStyleStrikethrough()¶
public function setFontStyleStrikethrough(): Style
Parameters¶
None
setFontStyleUnderline()¶
public function setFontStyleUnderline(?bool $double = false): Style
Parameters¶
bool|null $double
setFormat()¶
public function setFormat($format): Style
Parameters¶
string|array $format
setIndentDistributed()¶
public function setIndentDistributed(int $indent): Style
Parameters¶
int $indent
setIndentLeft()¶
public function setIndentLeft(int $indent): Style
Parameters¶
int $indent
setIndentRight()¶
public function setIndentRight(int $indent): Style
Parameters¶
int $indent
setTextAlign()¶
public function setTextAlign(string $textAlign,
?string $verticalAlign = null): Style
Parameters¶
string $textAlignstring|null $verticalAlign
setTextCenter()¶
public function setTextCenter(): Style
Parameters¶
None
setTextColor()¶
public function setTextColor(string $color): Style
Parameters¶
string $color
setTextRotation()¶
public function setTextRotation(int $degrees): Style
Parameters¶
int $degrees
setTextWrap()¶
public function setTextWrap(?bool $textWrap = true): Style
Parameters¶
bool|null $textWrap
setVerticalAlign()¶
public function setVerticalAlign(string $verticalAlign): Style
Parameters¶
string $verticalAlign
toArray()¶
public function toArray(): array
Parameters¶
None