public final class FileAttachmentAnnotation extends MarkupAnnotation
Class describes file attachment annotation.
_disableUpdateAppearance
Constructor and Description |
---|
FileAttachmentAnnotation(Page page,
Rectangle rect,
FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
|
FileSpecification |
getFile()
The specification of the file associated with this annotation.
|
int |
getIcon()
Gets or sets icon that shall be used in displaying annotation.
|
void |
setFile(FileSpecification value) |
void |
setIcon(int value) |
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 FileAttachmentAnnotation(Page page, Rectangle rect, FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
page
- Document's page where annotation should be created.rect
- Required rectangle that sets annotation's border.fileSpec
- Describes the file that shoud be bound with the annotation.public FileSpecification getFile()
The specification of the file associated with this annotation.
public void setFile(FileSpecification value)
public int getIcon()
Gets or sets icon that shall be used in displaying annotation.
public void setIcon(int value)
public void accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
accept
in class Annotation
visitor
- Visitor object.Copyright © 2019 Aspose. All Rights Reserved.