MarkupSection
Inheritance: java.lang.Object, com.aspose.pdf.MarkupSection
public final class MarkupSection extends Object
Represents a markup section - the rectangular region of a page that contains text and can be visually divided from another text blocks.
Methods
| Method | Description |
|---|---|
| getFragments | Collection of not empty {@code TextFragment} objects that are inside the section. 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). |
| getParagraphs | Collection of {@code MarkupParagraph} objects that are inside the section. |
| getRectangle | Section rectangle |
getFragments
public List < TextFragment > getFragments()
Collection of not empty {@code TextFragment} objects that are inside the section.
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
getParagraphs
public List < MarkupParagraph > getParagraphs()
Collection of {@code MarkupParagraph} objects that are inside the section.
Returns: list of MarkupParagraph instances
getRectangle
public Rectangle getRectangle()
Section rectangle
Returns: Rectangle instance