Class \avadim\FastExcelWriter\RichText\RichTextFragment

Source: 6.19.2 · 0608684

On this page


__construct()


php
public function __construct(?string $text = null, ?array $prop = null)

RichTextFragment constructor

Parameters

  • string|null $text
  • array|null $prop

getText()


php
public function getText(): string

Get fragment text

Parameters

None


setBold()


php
public function setBold(): RichTextFragment

Set font weight to bold

Parameters

None


setColor()


php
public function setColor(string $color): RichTextFragment

Set font color

Parameters

  • string $color

setFont()


php
public function setFont(string $font): RichTextFragment

Set font name

Parameters

  • string $font

setItalic()


php
public function setItalic(): RichTextFragment

Set font style to italic

Parameters

None


setSize()


php
public function setSize(int $size): RichTextFragment

Set font size

Parameters

  • int $size

setStrike()


php
public function setStrike(): RichTextFragment

Set font decoration to strikethrough

Parameters

None


setUnderline()


php
public function setUnderline(?bool $double = false): RichTextFragment

Set font decoration to underline

Parameters

  • bool|null $double

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.