public final class TextAnnotation extends MarkupAnnotation
Represents a text annotation that is a �sticky note� attached to a point in the PDF document.
_disableUpdateAppearance
Constructor and Description |
---|
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 |
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() |
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.
|
void |
writeXfdf(com.aspose.ms.System.Xml.XmlWriter writer) |
getCreationDate, getCreationDateInternal, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getSubject, getTitle, setInReplyTo, setOpacity, setPopup, setReplyType, setRichText, setSubject, setTitle
createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getRect, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setWidth
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
public void writeXfdf(com.aspose.ms.System.Xml.XmlWriter writer)
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.
public int getIcon()
Gets an icon to be used in displaying the annotation.
public void setIcon(int value)
Sets an icon to be used in displaying the annotation.
public int getState()
Gets the state to which the original annotation should be set.
public void setState(int value)
Sets the state to which the original annotation should be set.
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept
in class Annotation
visitor
- Visitor object.public int getStateModel()
Copyright © 2019 Aspose. All Rights Reserved.