MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
This method allows printing text with line breaks. These can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the \n character). As many cells as necessary are output, one below the other.
The text can be aligned, centered or justified. The block of cells can be framed and the background painted.
w
Width of cells. If 0
, they extend up to the right margin of the page.h
Height of cells.txt
String to be printed.border
Indicates if borders must be drawn around the cell block. The value can be a number:
0
: no border1
: frame
or a string containing some or all of the following characters (in any order):L
: leftT
: topR
: rightB
: bottom
Default value: 0
.align
Sets the text alignment. Possible values are:
L
: left alignmentC
: centeredR
: right alignmentJ
: justified (default value)fill
Indicates if cell background must be painted (true
) or transparent (false
). Default value: false
.SetFont, SetDrawColor, SetFillColor, SetTextColor, SetLineWidth, Cell, Write, SetAutoPageBreak