编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « UI\Draw\Text\Layout::__construct
  • UI\Draw\Text\Layout::setWidth »
  • PHP Manual
  • UI\Draw\Text\Layout
  • Set Color

UI\Draw\Text\Layout::setColor

(PHP 7, UI 0.9.9)

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

说明

public UI\Draw\Text\Layout::setColor ( UI\Draw\Color $color [, int $start = 0 [, int $end ]] )
public 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

参数

color

The color to use

start

The starting character

end

The ending character, by default the end of the string

相关文章
php ui represents text layoutphp ui controls button set textphp ui controls check set textphp ui controls editablecombo set textphp ui controls entry set textphp ui controls label set textphp ui draw brush set colorphp ui draw color color manipulationphp ui draw pen draw text at pointphp ui draw stroke set thicknessphp ui draw text font descriptor construct a new font descriptorphp ui draw text font descriptor get font familyphp ui draw text font descriptor style detectionphp ui draw text font descriptor size detectionphp ui draw text font descriptor style detectionphp ui draw text font descriptor weight detectionphp ui draw text font construct a new fontphp ui draw text layout construct a new text layoutphp ui draw text layout set colorphp ui draw text layout set width
关注编程学问公众号
编程学问网 湘ICP备20001732号