📄 pdfpcell.html
字号:
<DL><DD>Increases padding to include border if true<P><DL></DL></DL><HR><A NAME="phrase"><!-- --></A><H3>phrase</H3><PRE>protected <A HREF="../../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> <B>phrase</B></PRE><DL><DD>The text in the cell.<P><DL></DL></DL><HR><A NAME="rotation"><!-- --></A><H3>rotation</H3><PRE>private int <B>rotation</B></PRE><DL><DD>The rotation of the cell. Possible values are 0, 90, 180 and 270.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="PdfPCell()"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>()</PRE><DL><DD>Constructs an empty <CODE>PdfPCell</CODE>. The default padding is 2.<P></DL><HR><A NAME="PdfPCell(com.lowagie.text.Phrase)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> phrase)</PRE><DL><DD>Constructs a <CODE>PdfPCell</CODE> with a <CODE>Phrase</CODE>. The default padding is 2.<P><DL><DT><B>Parameters:</B><DD><CODE>phrase</CODE> - the text</DL></DL><HR><A NAME="PdfPCell(com.lowagie.text.Image)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A> image)</PRE><DL><DD>Constructs a <CODE>PdfPCell</CODE> with an <CODE>Image</CODE>. The default padding is 0.<P><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the <CODE>Image</CODE></DL></DL><HR><A NAME="PdfPCell(com.lowagie.text.Image, boolean)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/Image.html" title="class in com.lowagie.text">Image</A> image, boolean fit)</PRE><DL><DD>Constructs a <CODE>PdfPCell</CODE> with an <CODE>Image</CODE>. The default padding is 0.25 for a border width of 0.5.<P><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the <CODE>Image</CODE><DD><CODE>fit</CODE> - <CODE>true</CODE> to fit the image to the cell</DL></DL><HR><A NAME="PdfPCell(com.lowagie.text.pdf.PdfPTable)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfPTable.html" title="class in com.lowagie.text.pdf">PdfPTable</A> table)</PRE><DL><DD>Constructs a <CODE>PdfPCell</CODE> with a <CODE>PdfPtable</CODE>. This constructor allows nested tables. The default padding is 0.<P><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - The <CODE>PdfPTable</CODE></DL></DL><HR><A NAME="PdfPCell(com.lowagie.text.pdf.PdfPTable, com.lowagie.text.pdf.PdfPCell)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfPTable.html" title="class in com.lowagie.text.pdf">PdfPTable</A> table, <A HREF="../../../../com/lowagie/text/pdf/PdfPCell.html" title="class in com.lowagie.text.pdf">PdfPCell</A> style)</PRE><DL><DD>Constructs a <CODE>PdfPCell</CODE> with a <CODE>PdfPtable</CODE>. This constructor allows nested tables.<P><DL><DT><B>Parameters:</B><DD><CODE>table</CODE> - The <CODE>PdfPTable</CODE><DD><CODE>style</CODE> - The style to apply to the cell (you could use getDefaultCell())<DT><B>Since:</B></DT> <DD>2.1.0</DD></DL></DL><HR><A NAME="PdfPCell(com.lowagie.text.pdf.PdfPCell)"><!-- --></A><H3>PdfPCell</H3><PRE>public <B>PdfPCell</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfPCell.html" title="class in com.lowagie.text.pdf">PdfPCell</A> cell)</PRE><DL><DD>Constructs a deep copy of a <CODE>PdfPCell</CODE>.<P><DL><DT><B>Parameters:</B><DD><CODE>cell</CODE> - the <CODE>PdfPCell</CODE> to duplicate</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="addElement(com.lowagie.text.Element)"><!-- --></A><H3>addElement</H3><PRE>public void <B>addElement</B>(<A HREF="../../../../com/lowagie/text/Element.html" title="interface in com.lowagie.text">Element</A> element)</PRE><DL><DD>Adds an iText element to the cell.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - </DL></DD></DL><HR><A NAME="getPhrase()"><!-- --></A><H3>getPhrase</H3><PRE>public <A HREF="../../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> <B>getPhrase</B>()</PRE><DL><DD>Gets the <CODE>Phrase</CODE> from this cell.<P><DD><DL><DT><B>Returns:</B><DD>the <CODE>Phrase</CODE></DL></DD></DL><HR><A NAME="setPhrase(com.lowagie.text.Phrase)"><!-- --></A><H3>setPhrase</H3><PRE>public void <B>setPhrase</B>(<A HREF="../../../../com/lowagie/text/Phrase.html" title="class in com.lowagie.text">Phrase</A> phrase)</PRE><DL><DD>Sets the <CODE>Phrase</CODE> for this cell.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>phrase</CODE> - the <CODE>Phrase</CODE></DL></DD></DL><HR><A NAME="getHorizontalAlignment()"><!-- --></A><H3>getHorizontalAlignment</H3><PRE>public int <B>getHorizontalAlignment</B>()</PRE><DL><DD>Gets the horizontal alignment for the cell.<P><DD><DL><DT><B>Returns:</B><DD>the horizontal alignment for the cell</DL></DD></DL><HR><A NAME="setHorizontalAlignment(int)"><!-- --></A><H3>setHorizontalAlignment</H3><PRE>public void <B>setHorizontalAlignment</B>(int horizontalAlignment)</PRE><DL><DD>Sets the horizontal alignment for the cell. It could be <CODE>Element.ALIGN_CENTER</CODE> for example.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>horizontalAlignment</CODE> - The horizontal alignment</DL></DD></DL><HR><A NAME="getVerticalAlignment()"><!-- --></A><H3>getVerticalAlignment</H3><PRE>public int <B>getVerticalAlignment</B>()</PRE><DL><DD>Gets the vertical alignment for the cell.<P><DD><DL><DT><B>Returns:</B><DD>the vertical alignment for the cell</DL></DD></DL><HR><A NAME="setVerticalAlignment(int)"><!-- --></A><H3>setVerticalAlignment</H3><PRE>public void <B>setVerticalAlignment</B>(int verticalAlignment)</PRE><DL><DD>Sets the vertical alignment for the cell. It could be <CODE>Element.ALIGN_MIDDLE</CODE> for example.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>verticalAlignment</CODE> - The vertical alignment</DL></DD></DL><HR><A NAME="getEffectivePaddingLeft()"><!-- --></A><H3>getEffectivePaddingLeft</H3><PRE>public float <B>getEffectivePaddingLeft</B>()</PRE><DL><DD>Gets the effective left padding. This will include the left border width if <A HREF="../../../../com/lowagie/text/pdf/PdfPCell.html#isUseBorderPadding()"><CODE>isUseBorderPadding()</CODE></A> is true.<P><DD><DL><DT><B>Returns:</B><DD>effective value of property paddingLeft.</DL></DD></DL><HR><A NAME="ge
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -