public final class TextAnnotation extends MarkupAnnotation
Represents a text annotation that is a "sticky note" attached to a point in the PDF document.
| Constructor and Description |
|---|
TextAnnotation()
Create TextAnnotation instance
|
TextAnnotation(IDocument document)
Constructor for annotation when used in Generator.
|
TextAnnotation(Page page,
Rectangle rect)
Creates new Text annotation on the specified page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
int |
getAnnotationType()
Gets type of annotation.
|
int |
getIcon()
Gets an icon to be used in displaying the annotation.
|
boolean |
getOpen()
Gets a flag specifying whether the annotation should initially be displayed open.
|
int |
getState()
Gets the state to which the original annotation should be set.
|
int |
getStateModel()
Gets state model
|
void |
setIcon(int value)
Sets an icon to be used in displaying the annotation.
|
void |
setOpen(boolean value)
Sets a flag specifying whether the annotation should initially be displayed open.
|
void |
setState(int value)
Sets the state to which the original annotation should be set.
|
getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitlechangeAfterResize, 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 TextAnnotation(IDocument document)
Constructor for annotation when used in Generator.
document - Document where text annotation will be created.public TextAnnotation(Page page, Rectangle rect)
Creates new Text annotation on the specified page.
page - The document's page where annotation should be created.rect - The annotation rectangle, defining the location of the annotation on the page.public TextAnnotation()
public boolean getOpen()
Gets a flag specifying whether the annotation should initially be displayed open.
public void setOpen(boolean value)
Sets a flag specifying whether the annotation should initially be displayed open.
value - boolean valuepublic int getIcon()
Gets an icon to be used in displaying the annotation.
TextIconpublic void setIcon(int value)
Sets an icon to be used in displaying the annotation.
value - TextIcon valueTextIconpublic int getState()
Gets the state to which the original annotation should be set.
AnnotationStatepublic void setState(int value)
Sets the state to which the original annotation should be set.
value - AnnotationState valueAnnotationStatepublic int getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationStatepublic void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept in class Annotationvisitor - Visitor object.public int getStateModel()
Gets state model
AnnotationStateModelCopyright © 2022 Aspose. All Rights Reserved.