![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.pdf.elements.PdfElementBase
com.aspose.pdf.elements.Paragraph
com.aspose.pdf.elements.Text
Represents a text Paragraph in a Pdf document.
Constructor Summary | |
Text(Section section)
Initialize a new instance of the Text class. |
|
Text(Section section,
java.lang.String content)
Initialize a new instance of the Text class. |
Method Summary | |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
Segments |
getSegments()
Gets a Segments collection that indicates all segments in the text paragraph. |
TextInfo |
getTextInfo()
Gets a TextInfo object that indicates the text info of the text paragraph. |
void |
setSegments(Segments segments)
Sets a Segments collection that indicates all segments in the text paragraph. |
void |
setTextInfo(TextInfo textInfo)
Sets a TextInfo object that indicates the text info of the text paragraph. |
Methods inherited from class com.aspose.pdf.elements.Paragraph |
clone, getMargin, isDisabled, isFirstParagraph, isKeptTogether, isOnOddPage, setDisabled, setFirstParagraph, setKeptTogether, setMargin, setOnOddPage |
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 Text(Section section, java.lang.String content)
[SampleCode] Pdf pdf = new Pdf(); Section sec1 = pdf.getSections().add(); Text text1 = new Text(sec1,"seg1 "); sec1.getParagraphs().add(text1);
section
- The Text will inherit format info from the Section.public Text(Section section)
section
- The Text will inherit format info from the Section.Method Detail |
public TextInfo getTextInfo()
public void setTextInfo(TextInfo textInfo)
textInfo
- The TextInfo to set.public Segments getSegments()
public void setSegments(Segments segments)
segments
- The segments to set.public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class Paragraph
AsposeBaseException
PdfElementBase.getDOMElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |