UnderlineAnnotation
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.TextMarkupAnnotation
public final class UnderlineAnnotation extends TextMarkupAnnotation
Represents an underline annotation that appears as an underline in the text of the document.
Constructors
| Constructor | Description |
|---|---|
| UnderlineAnnotation(Page page, Rectangle rect) | Creates new Underline annotation on the specified page. |
Methods
| Method | Description |
|---|---|
| accept(AnnotationSelector visitor) | Accepts visitor object to process the annotation. |
| getAnnotationType() | Gets type of annotation. |
UnderlineAnnotation(Page page, Rectangle rect)
public UnderlineAnnotation(Page page, Rectangle rect)
Creates new Underline annotation on the specified page.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | Page | The document’s page where annotation should be created. |
| rect | Rectangle | The annotation rectangle, defining the location of the annotation on the page. |
accept(AnnotationSelector visitor)
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| visitor | AnnotationSelector | Visitor object. |
getAnnotationType()
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType - AnnotationType element