HaruPage::textRect
(PECL haru >= 0.0.1)
HaruPage::textRect — چاپ متن در داخل منطقه مشخص
Description
bool HaruPage::textRect
( float $left
, float $top
, float $right
, float $bottom
, string $text
[, int $align = HaruPage::TALIGN_LEFT
] )
چاپ متن در داخل منطقه مشخص.
Parameters
- left
-
مرز چپ منطقه متن.
- top
-
مرز بالا منطقه متن.
- right
-
مرز راست منطقه متن.
- bottom
-
مرز پایین منطقه متن.
- text
-
متن برای چاپ.
- align
-
جهت متن. یکی از مقادیر زیر:
- HaruPage::TALIGN_LEFT
- HaruPage::TALIGN_RIGHT
- HaruPage::TALIGN_CENTER
- HaruPage::TALIGN_JUSTIFY
Return Values
بازگرداندن TRUE در صورت موفقیت.
Errors/Exceptions
Throws a HaruException on error.
See Also
- HaruPage::showTextNextLine() - انتقال موقعیت فعلی به شروع خط بعدی و چاپ متن
- HaruPage::showText() - چاپ متن در موقعیت فعلی صفحه
- HaruPage::textOut() - چاپ متن در موقعیت مشخص
There are no user contributed notes for this page.
