source: trunk/phpgwapi/inc/fpdf/doc/cell.htm @ 2

Revision 2, 3.2 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<HTML>
2<HEAD>
3<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
4<TITLE>Cell</TITLE>
5<LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
6</HEAD>
7<BODY>
8<H2>Cell</H2>
9<TT>Cell(<B>float</B> w [, <B>float</B> h [, <B>string</B> txt [, <B>mixed</B> border [, <B>int</B> ln [, <B>string</B> align [, <B>int</B> fill [, <B>mixed</B> link]]]]]]])</TT>
10<H4 CLASS='st'>Version</H4>
111.0
12<H4 CLASS='st'>Description</H4>
13Prints a cell (rectangular area) with optional borders, background color and character string.
14The upper-left corner of the cell corresponds to the current position. The text can be aligned
15or centered. After the call, the current position moves to the right or to the next line. It is
16possible to put a link on the text.
17<BR>
18If automatic page breaking is enabled and the cell goes beyond the limit, a page break is
19done before outputting.
20<H4 CLASS='st'>Parameters</H4>
21<TT><U>w</U></TT>
22<BLOCKQUOTE>
23Cell width. If <TT>0</TT>, the cell extends up to the right margin.
24</BLOCKQUOTE>
25<TT><U>h</U></TT>
26<BLOCKQUOTE>
27Cell height.
28Default value: <TT>0</TT>.
29</BLOCKQUOTE>
30<TT><U>txt</U></TT>
31<BLOCKQUOTE>
32String to print.
33Default value: empty string.
34</BLOCKQUOTE>
35<TT><U>border</U></TT>
36<BLOCKQUOTE>
37Indicates if borders must be drawn around the cell. The value can be either a number:
38<UL>
39<LI><TT>0</TT>: no border
40<LI><TT>1</TT>: frame
41</UL>
42or a string containing some or all of the following characters (in any order):
43<UL>
44<LI><TT>L</TT>: left
45<LI><TT>T</TT>: top
46<LI><TT>R</TT>: right
47<LI><TT>B</TT>: bottom
48</UL>
49Default value: <TT>0</TT>.
50</BLOCKQUOTE>
51<TT><U>ln</U></TT>
52<BLOCKQUOTE>
53Indicates where the current position should go after the call. Possible values are:
54<UL>
55<LI><TT>0</TT>: to the right
56<LI><TT>1</TT>: to the beginning of the next line
57<LI><TT>2</TT>: below
58</UL>
59Putting <TT>1</TT> is equivalent to putting <TT>0</TT> and calling Ln() just after.
60Default value: <TT>0</TT>.
61</BLOCKQUOTE>
62<TT><U>align</U></TT>
63<BLOCKQUOTE>
64Allows to center or align the text. Possible values are:
65<UL>
66<LI><TT>L</TT> or empty string: left align (default value)
67<LI><TT>C</TT>: center
68<LI><TT>R</TT>: right align
69</UL>
70</BLOCKQUOTE>
71<TT><U>fill</U></TT>
72<BLOCKQUOTE>
73Indicates if the cell background must be painted (<TT>1</TT>) or transparent (<TT>0</TT>).
74Default value: <TT>0</TT>.
75</BLOCKQUOTE>
76<TT><U>link</U></TT>
77<BLOCKQUOTE>
78URL or identifier returned by AddLink().
79</BLOCKQUOTE>
80<H4 CLASS='st'>Example</H4>
81<TABLE WIDTH="100%" BGCOLOR="#E0E0E0"><TR><TD>
82<TT>
83//Set font<BR>
84$pdf-&gt;SetFont('Arial','B',16);<BR>
85//Move to 8 cm to the right<BR>
86$pdf-&gt;Cell(80);<BR>
87//Centered text in a framed 20*10 mm cell and line break<BR>
88$pdf-&gt;Cell(20,10,'Title',1,1,'C');
89</TT>
90</TD></TR></TABLE><BR>
91<H4 CLASS='st'>See also</H4>
92<A HREF="setfont.htm">SetFont()</A>,
93<A HREF="setdrawcolor.htm">SetDrawColor()</A>,
94<A HREF="setfillcolor.htm">SetFillColor()</A>,
95<A HREF="settextcolor.htm">SetTextColor()</A>,
96<A HREF="setlinewidth.htm">SetLineWidth()</A>,
97<A HREF="addlink.htm">AddLink()</A>,
98<A HREF="ln.htm">Ln()</A>,
99<A HREF="multicell.htm">MultiCell()</A>,
100<A HREF="write.htm">Write()</A>,
101<A HREF="setautopagebreak.htm">SetAutoPageBreak()</A>.
102<H6></H6>
103<HR>
104<DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
105</BODY>
106</HTML>
Note: See TracBrowser for help on using the repository browser.