StrikeOutAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.TextMarkupAnnotation

public final class StrikeOutAnnotation extends TextMarkupAnnotation

Represents a strikeout annotation that appears as a strikeout in the text of the document.

Constructors

ConstructorDescription
StrikeOutAnnotation(Page page, Rectangle rect)Creates new StrikeOut annotation on the specified page.

Methods

MethodDescription
accept(AnnotationSelector visitor)Accepts visitor object to process the annotation.
getAnnotationType()Gets type of annotation.

StrikeOutAnnotation(Page page, Rectangle rect)

public StrikeOutAnnotation(Page page, Rectangle rect)

Creates new StrikeOut annotation on the specified page.

Parameters:

ParameterTypeDescription
pagePageThe document’s page where annotation should be created.
rectRectangleThe 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:

ParameterTypeDescription
visitorAnnotationSelectorVisitor object.

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType - AnnotationType element