Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<UI\Draw\Text\Layout::__constructUI\Draw\Text\Layout::setWidth>
^UI\Draw\Text\LayoutLast updated: Mon, 26 Oct 2026

UI\Draw\Text\Layout::setColor

(UI 0.9.9)

UI\Draw\Text\Layout::setColor — Set Color

Description

public function UI\Draw\Text\Layout::setColor(UI\Draw\Color $color, int $start = 0, int $end = ?)
public function UI\Draw\Text\Layout::setColor(int $color, int $start = 0, int $end = ?)

Shall set the Color for all of, or a range of the text in the Layout

Parameters

color

The color to use

start

The starting character

end

The ending character, by default the end of the string


<UI\Draw\Text\Layout::__constructUI\Draw\Text\Layout::setWidth>
^UI\Draw\Text\LayoutLast updated: Mon, 26 Oct 2026