public final class LinkAnnotation extends Annotation
Represents either a hypertext link to a destination elsewhere in the document or an action to be performed.
| Constructor and Description |
|---|
LinkAnnotation(Page page,
Rectangle rect)
Creates new Link annotation on the specified page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
PdfAction |
getAction()
Get an action to be performed when the link annotation is activated.
|
AnnotationType |
getAnnotationType()
Gets type of annotation.
|
IAppointment |
getDestination()
Get a destination to be displayed when the annotation is activated.
|
HighlightingMode |
getHighlighting()
Get the visual effect to be used when the mouse button is pressed or held down inside its
active area.
|
void |
setAction(PdfAction value)
Set an action to be performed when the link annotation is activated.
|
void |
setDestination(IAppointment value)
Set a destination to be displayed when the annotation is activated.
|
void |
setHighlighting(HighlightingMode value)
Set the visual effect to be used when the mouse button is pressed or held down inside its
active area.
|
changeAfterResize, createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic PdfAction getAction()
Get an action to be performed when the link annotation is activated.
public void setAction(PdfAction value)
Set an action to be performed when the link annotation is activated.
value - PdfAction objectpublic IAppointment getDestination()
Get a destination to be displayed when the annotation is activated.
public void setDestination(IAppointment value)
Set a destination to be displayed when the annotation is activated.
value - IAppointment objectpublic void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept in class Annotationvisitor - Visitor object.public HighlightingMode getHighlighting()
Get the visual effect to be used when the mouse button is pressed or held down inside its active area.
HighlightingModepublic void setHighlighting(HighlightingMode value)
Set the visual effect to be used when the mouse button is pressed or held down inside its active area.
value - HighlightingMode elementHighlightingModepublic AnnotationType getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationTypeCopyright © 2025 Aspose. All Rights Reserved.