MarkupParagraph
Inheritance: java.lang.Object, com.aspose.pdf.MarkupParagraph
public final class MarkupParagraph extends Object
Represents a paragraph.
Methods
| Method | Description |
|---|---|
| getContinuationPageNumbers | List of page numbers on which the paragraph is continued. It will match with page where the paragraph started if it is continuing in the next column on the same page. |
| getFragments | Collection of not empty {@code TextFragment} objects of the paragraph. The {@code TextFragment} object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc). |
| getFragmentsInternal | |
| getLines | Lines of paragraph. Each line represented by list of text fragments. The {@code TextFragment} object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc). |
| getLinesInternal | |
| getPoints | Points of polygon that describes paragraph. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence. |
| getSecondaryPoints | Points of secondary polygon describes paragraph continuation. It will not be null if the paragraph is continued in the next column or page. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence. |
| getText | Gets {@code string} text object that the {@code MarkupParagraph} object represents. |
| setText | Gets or sets the paragraph text. |
getContinuationPageNumbers
public final List < Integer > getContinuationPageNumbers()
List of page numbers on which the paragraph is continued. It will match with page where the paragraph started if it is continuing in the next column on the same page.
Returns: list of Integer
getFragments
public List < TextFragment > getFragments()
Collection of not empty {@code TextFragment} objects of the paragraph.
The {@code TextFragment} object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc).
Returns: list of TextFragment instances
getFragmentsInternal
public com.aspose.ms.System.Collections.Generic.List< TextFragment > getFragmentsInternal()
getLines
public List <com.aspose.ms.System.Collections.Generic.List< TextFragment >> getLines()
Lines of paragraph. Each line represented by list of text fragments.
The {@code TextFragment} object provides access to the search occurrence text, text properties, and allows to edit text and change the text state (font, font size, color etc).
Returns: list of TextFragment instances
getLinesInternal
public com.aspose.ms.System.Collections.Generic.List<com.aspose.ms.System.Collections.Generic.List< TextFragment >> getLinesInternal()
getPoints
public Point [] getPoints()
Points of polygon that describes paragraph. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence.
Returns: array of Point instances
getSecondaryPoints
public final List < Point []> getSecondaryPoints()
Points of secondary polygon describes paragraph continuation. It will not be null if the paragraph is continued in the next column or page. Starting point is lower left corner of the paragraph. And next points are in anti-clockwise sequence.
Returns: list of Point[]
getText
public String getText()
Gets {@code string} text object that the {@code MarkupParagraph} object represents.
Returns: String value
setText
Gets or sets the paragraph text.