HaruPage
HaruFont
HaruPage
PHP Manual

# HaruPage::textRect

(PECL haru:0.0.1)

HaruPage::textRect — Print the text inside the specified region

### Beschreibung

bool HaruPage::textRect ( float `$left` , float `$top` , float `$right` , float `$bottom` , string `$text` [, int `$align` ] )

Prints the text inside the specified region.

### Parameter-Liste

`left`

  Left border of the text area.

`top`

  Top border of the text area.

`right`

  Right border of the text area.

`bottom`

  Lower border of the text area.

`text`

  The text to print.

`align`

  Text alignment. Must be one of the following values:

  - `HaruPage::TALING_LEFT`
  - `HaruPage::TALING_RIGHT`
  - `HaruPage::TALING_CENTER`
  - `HaruPage::TALING_JUSTIFY`

### Rückgabewerte

Returns `TRUE` on success.

### Fehler/Exceptions

Throws HaruException on error.

### Siehe auch

- HaruPage::showTextNextLine()
- HaruPage::showText()
- HaruPage::textOut()

HaruPage
HaruFont
HaruPage
PHP Manual