Class \avadim\FastExcelWriter\RichText\RichText

Source: 6.19.2 · 0608684

On this page


__construct()


php
public function __construct($fragments)

RichText constructor

Parameters

  • string|array|null $fragments

__toString()


php
public function __toString(): string

Parameters

None


addTaggedText()


php
public function addTaggedText(string $text): RichText

Add tagged text (, , , , , )

Parameters

  • string $text

addText()


php
public function addText(string $text, $prop): RichText

Add a text fragment

Parameters

  • string $text
  • mixed $prop

fragment()


php
public function fragment($num): RichTextFragment

Get fragment by its index

Parameters

  • $num

fragments()


php
public function fragments(): array

Get all fragments

Parameters

None


setBold()


php
public function setBold(): RichText

Set bold font for the last added fragment

Parameters

None


setColor()


php
public function setColor(string $color): RichText

Set font color for the last added fragment

Parameters

  • string $color

setFont()


php
public function setFont(string $font): RichText

Set font name for the last added fragment

Parameters

  • string $font

setItalic()


php
public function setItalic(): RichText

Set italic font for the last added fragment

Parameters

None


setSize()


php
public function setSize(int $size): RichText

Set font size for the last added fragment

Parameters

  • int $size

setUnderline()


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

Set underline for the last added fragment

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.