|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Section com.aspose.pdf.elements.ListSection
public class ListSection
Represents a ListSection in pdf document.
[SampleCode] list= new ListSection(sec1); list.add("?", "number 1 item."); list.add("?", "number 2 item."); sec1.add(list);
Constructor Summary | |
---|---|
ListSection(Pdf pdf)
Initialize a new instance of the Leader class. |
Method Summary | |
---|---|
void |
clear()
Clear listItems of ListSection. |
float |
getDistanceBetweenIndents()
Gets the float that indicates the ditance Between start indent of list item label and list item body. The unit is point, default value is 24. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
float |
getLabelSeperation()
Gets the float that indicates the seperation between list item label end and list item body start. |
boolean |
isEmpty()
Returns true if the collection contains no listItem. |
java.util.Iterator |
iterator()
Returns an iterator over the listItem objects in segments in proper sequence. |
void |
remove(int index)
Removes a ListItem object from the collection at the specified position. |
void |
setDistanceBetweenIndents(float betweenIndents)
Sets the float that indicates the ditance Between start indent of list item label and list item body. |
void |
setLabelSeperation(float seperation)
Sets the float that indicates the seperation between list item label end and list item body start. |
int |
size()
Gets the size of listItem objects collection. |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
---|
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListSection(Pdf pdf) throws AsposeBaseException
pdf
- The ListSection will inherit format info from the pdf.
AsposeBaseException
Method Detail |
---|
public void clear()
public void remove(int index)
index
- The index of the listItem that willed removed.public int size()
public java.util.Iterator iterator()
public boolean isEmpty()
public float getDistanceBetweenIndents()
public void setDistanceBetweenIndents(float betweenIndents)
betweenIndents
- The ditance between indents to set.public float getLabelSeperation()
public void setLabelSeperation(float seperation)
seperation
- The label seperation to set.public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class Section
AsposeBaseException
PdfElementBase.getDOMElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |