📄 section.html
字号:
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the specified element is to be inserted<DD><CODE>o</CODE> - an object of type <CODE>Paragraph</CODE>, <CODE>List</CODE> or <CODE>Table</CODE>=<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/ClassCastException.html">ClassCastException</A></CODE> - if the object is not a <CODE>Paragraph</CODE>, <CODE>List</CODE> or <CODE>Table</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="add(java.lang.Object)"><!-- --></A><H3>
add</H3>
<PRE>
public boolean <B>add</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> o)</PRE>
<DL>
<DD>Adds a <CODE>Paragraph</CODE>, <CODE>List</CODE>, <CODE>Table</CODE> or another <CODE>Section</CODE> to this <CODE>Section</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/lowagie/text/TextElementArray.html#add(java.lang.Object)">add</A></CODE> in interface <CODE><A HREF="../../../com/lowagie/text/TextElementArray.html">TextElementArray</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html#add(java.lang.Object)">add</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html">ArrayList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - an object of type <CODE>Paragraph</CODE>, <CODE>List</CODE>, <CODE>Table</CODE> or another <CODE>Section</CODE><DT><B>Returns:</B><DD>a boolean<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/ClassCastException.html">ClassCastException</A></CODE> - if the object is not a <CODE>Paragraph</CODE>, <CODE>List</CODE>, <CODE>Table</CODE> or <CODE>Section</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="addAll(java.util.Collection)"><!-- --></A><H3>
addAll</H3>
<PRE>
public boolean <B>addAll</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A> collection)</PRE>
<DL>
<DD>Adds a collection of <CODE>Element</CODE>s to this <CODE>Section</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>addAll</CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html">List</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html#addAll(java.util.Collection)">addAll</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ArrayList.html">ArrayList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>collection</CODE> - a collection of <CODE>Paragraph</CODE>s, <CODE>List</CODE>s and/or <CODE>Table</CODE>s<DT><B>Returns:</B><DD><CODE>true</CODE> if the action succeeded, <CODE>false</CODE> if not.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/ClassCastException.html">ClassCastException</A></CODE> - if one of the objects isn't a <CODE>Paragraph</CODE>, <CODE>List</CODE>, <CODE>Table</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="addSection(float, com.lowagie.text.Paragraph, int)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(float indentation, <A HREF="../../../com/lowagie/text/Paragraph.html">Paragraph</A> title, int numberDepth)</PRE>
<DL>
<DD>Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation of the new section<DD><CODE>title</CODE> - the title of the new section<DD><CODE>numberDepth</CODE> - the numberDepth of the section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(float, com.lowagie.text.Paragraph)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(float indentation, <A HREF="../../../com/lowagie/text/Paragraph.html">Paragraph</A> title)</PRE>
<DL>
<DD>Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation of the new section<DD><CODE>title</CODE> - the title of the new section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(com.lowagie.text.Paragraph, int)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(<A HREF="../../../com/lowagie/text/Paragraph.html">Paragraph</A> title, int numberDepth)</PRE>
<DL>
<DD>Creates a <CODE>Section</CODE>, add it to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the title of the new section<DD><CODE>numberDepth</CODE> - the numberDepth of the section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(com.lowagie.text.Paragraph)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(<A HREF="../../../com/lowagie/text/Paragraph.html">Paragraph</A> title)</PRE>
<DL>
<DD>Creates a <CODE>Section</CODE>, adds it to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the title of the new section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(float, java.lang.String, int)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(float indentation, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> title, int numberDepth)</PRE>
<DL>
<DD>Adds a <CODE>Section</CODE> to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation of the new section<DD><CODE>title</CODE> - the title of the new section<DD><CODE>numberDepth</CODE> - the numberDepth of the section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(java.lang.String, int)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> title, int numberDepth)</PRE>
<DL>
<DD>Adds a <CODE>Section</CODE> to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the title of the new section<DD><CODE>numberDepth</CODE> - the numberDepth of the section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(float, java.lang.String)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(float indentation, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> title)</PRE>
<DL>
<DD>Adds a <CODE>Section</CODE> to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation of the new section<DD><CODE>title</CODE> - the title of the new section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(java.lang.String)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> title)</PRE>
<DL>
<DD>Adds a <CODE>Section</CODE> to this <CODE>Section</CODE> and returns it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the title of the new section</DL>
</DD>
</DL>
<HR>
<A NAME="addSection(java.util.Properties)"><!-- --></A><H3>
addSection</H3>
<PRE>
public <A HREF="../../../com/lowagie/text/Section.html">Section</A> <B>addSection</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> attributes)</PRE>
<DL>
<DD>Creates a given <CODE>Section</CODE> following a set of attributes and adds it to this one.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the attributes<DT><B>Returns:</B><DD>a Section</DL>
</DD>
</DL>
<HR>
<A NAME="set(java.util.Properties)"><!-- --></A><H3>
set</H3>
<PRE>
public void <B>set</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html">Properties</A> attributes)</PRE>
<DL>
<DD>Alters the attributes of this <CODE>Section</CODE>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the attributes</DL>
</DD>
</DL>
<HR>
<A NAME="setTitle(com.lowagie.text.Paragraph)"><!-- --></A><H3>
setTitle</H3>
<PRE>
public void <B>setTitle</B>(<A HREF="../../../com/lowagie/text/Paragraph.html">Paragraph</A> title)</PRE>
<DL>
<DD>Sets the title of this section.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>title</CODE> - the new title</DL>
</DD>
</DL>
<HR>
<A NAME="setNumberDepth(int)"><!-- --></A><H3>
setNumberDepth</H3>
<PRE>
public void <B>setNumberDepth</B>(int numberDepth)</PRE>
<DL>
<DD>Sets the depth of the sectionnumbers that will be shown preceding the title. <P> If the numberdepth is 0, the sections will not be numbered. If the numberdepth is 1, the section will be numbered with their own number. If the numberdepth is higher (for instance x > 1), the numbers of x - 1 parents will be shown.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numberDepth</CODE> - the new numberDepth</DL>
</DD>
</DL>
<HR>
<A NAME="setIndentationLeft(float)"><!-- --></A><H3>
setIndentationLeft</H3>
<PRE>
public void <B>setIndentationLeft</B>(float indentation)</PRE>
<DL>
<DD>Sets the indentation of this <CODE>Section</CODE> on the left side.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation</DL>
</DD>
</DL>
<HR>
<A NAME="setIndentationRight(float)"><!-- --></A><H3>
setIndentationRight</H3>
<PRE>
public void <B>setIndentationRight</B>(float indentation)</PRE>
<DL>
<DD>Sets the indentation of this <CODE>Section</CODE> on the right side.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>indentation</CODE> - the indentation</DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -