multicell.htm 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
  5. <TITLE>MultiCell</TITLE>
  6. <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
  7. </HEAD>
  8. <BODY>
  9. <H2>MultiCell</H2>
  10. <TT>MultiCell(<B>float</B> w, <B>float</B> h, <B>string</B> txt [, <B>mixed</B> border [, <B>string</B> align [, <B>int</B> fill]]])</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.3
  13. <H4 CLASS='st'>Description</H4>
  14. This method allows printing text with line breaks. They can be automatic (as soon as the
  15. text reaches the right border of the cell) or explicit (via the \n character). As many cells
  16. as necessary are output, one below the other.
  17. <BR>
  18. Text can be aligned, centered or justified. The cell block can be framed and the background
  19. painted.
  20. <H4 CLASS='st'>Parameters</H4>
  21. <TT><U>w</U></TT>
  22. <BLOCKQUOTE>
  23. Width of cells. If <TT>0</TT>, they extend up to the right margin of the page.
  24. </BLOCKQUOTE>
  25. <TT><U>h</U></TT>
  26. <BLOCKQUOTE>
  27. Height of cells.
  28. </BLOCKQUOTE>
  29. <TT><U>txt</U></TT>
  30. <BLOCKQUOTE>
  31. String to print.
  32. </BLOCKQUOTE>
  33. <TT><U>border</U></TT>
  34. <BLOCKQUOTE>
  35. Indicates if borders must be drawn around the cell block. The value can be either a number:
  36. <UL>
  37. <LI><TT>0</TT>: no border
  38. <LI><TT>1</TT>: frame
  39. </UL>
  40. or a string containing some or all of the following characters (in any order):
  41. <UL>
  42. <LI><TT>L</TT>: left
  43. <LI><TT>T</TT>: top
  44. <LI><TT>R</TT>: right
  45. <LI><TT>B</TT>: bottom
  46. </UL>
  47. Default value: <TT>0</TT>.
  48. </BLOCKQUOTE>
  49. <TT><U>align</U></TT>
  50. <BLOCKQUOTE>
  51. Sets the text alignment. Possible values are:
  52. <UL>
  53. <LI><TT>L</TT>: left alignment
  54. <LI><TT>C</TT>: center
  55. <LI><TT>R</TT>: right alignment
  56. <LI><TT>J</TT>: justification (default value)
  57. </UL>
  58. </BLOCKQUOTE>
  59. <TT><U>fill</U></TT>
  60. <BLOCKQUOTE>
  61. Indicates if the cell background must be painted (<TT>1</TT>) or transparent (<TT>0</TT>).
  62. Default value: <TT>0</TT>.
  63. </BLOCKQUOTE>
  64. <H4 CLASS='st'>See also</H4>
  65. <A HREF="setfont.htm">SetFont()</A>,
  66. <A HREF="setdrawcolor.htm">SetDrawColor()</A>,
  67. <A HREF="setfillcolor.htm">SetFillColor()</A>,
  68. <A HREF="settextcolor.htm">SetTextColor()</A>,
  69. <A HREF="setlinewidth.htm">SetLineWidth()</A>,
  70. <A HREF="cell.htm">Cell()</A>,
  71. <A HREF="write.htm">Write()</A>,
  72. <A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
  73. <HR STYLE="margin-top:1.2em">
  74. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  75. </BODY>
  76. </HTML>