|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Paragraph com.aspose.pdf.elements.Attachment
public class Attachment
Represents an annotation Paragraph in a Pdf document.
Constructor Summary | |
---|---|
Attachment(Section section)
Initializes a new instance of the Attachment class. |
|
Attachment(Section section,
Rectangle rect)
Initializes a new instance of the Attachment class. |
Method Summary | |
---|---|
AnnotationIconType |
getAnnotationIconType()
Gets the type of the annotation icon. |
java.lang.String |
getAttachedFileName()
Gets a string that indicates the attach file name. |
byte[] |
getAttachedStream()
Gets a stream attaches to the file. |
AttachmentType |
getAttachType()
Gets AttachmentType that indicates the attachment type. |
java.lang.String |
getDescription()
Gets a string that indicates the description of attached file. |
FileIconType |
getFileIconType()
Gets a FileIconType that indicates the file attachment icon type. |
Color |
getIconColor()
Represents a Color object that indicates the color of the icon. |
float |
getIconOpacity()
Gets a float value between 0.0 and 1.0 that indicates the opacity of the image. |
java.lang.String |
getNoteContent()
Gets a string that indicates the content of the attached note. |
java.lang.String |
getNoteHeading()
Gets a string that indicates the heading (title) of the attached note. |
Rectangle |
getNoteWindowPosition()
Gets a RectangleArea object that indicates the position of the note's popup window. |
boolean |
isNoteOpen()
Gets a bool value that indicates whether the note is open or not when the Pdf document is opened. |
void |
setAnnotationIconType(AnnotationIconType annotationIconType)
Sets the type of the annotation icon. |
void |
setAttachedFileName(java.lang.String attachedFileName)
Sets a string that indicates the attach file name. |
void |
setAttachedStream(byte[] attachedStream)
Sets a stream attaches to the file. |
void |
setAttachType(AttachmentType attachType)
Sets AttachmentType that indicates the attachment type. |
void |
setDescription(java.lang.String discription)
Sets a string that indicates the description of attached file. |
void |
setFileIconType(FileIconType iconType)
Sets a FileIconType that indicates the file attachment icon type. |
void |
setIconColor(Color iconColor)
Sets a Color object that indicates the color of the icon. |
void |
setIconOpacity(float iconOpacity)
Sets a float value between 0.0 and 1.0 that indicates the opacity of the image. |
void |
setNoteContent(java.lang.String noteContent)
Sets a string that indicates the content of the attached note. |
void |
setNoteHeading(java.lang.String noteHeading)
Sets a string that indicates the heading (title) of the attached note. |
void |
setNoteOpen(boolean isNoteOpen)
Sets a bool value that indicates whether the note is open or not when the Pdf document is opened. |
void |
setNoteWindowPosition(Rectangle noteWindowPosition)
Sets a RectangleArea object that indicates the position of the note's popup window. |
Methods inherited from class com.aspose.pdf.elements.Paragraph |
---|
clone, getDOMElement, getLeft, getMargin, getTop, isDisabled, isFirstParagraph, isKeptTogether, isOnOddPage, setDisabled, setFirstParagraph, setKeptTogether, setLeft, setMargin, setOnOddPage, setTop |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
---|
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attachment(Section section)
section
- the Section this attachment in.public Attachment(Section section, Rectangle rect)
section
- the Section this attachment in.rect
- the position the attachment in.Method Detail |
---|
public boolean isNoteOpen()
public void setNoteOpen(boolean isNoteOpen)
public java.lang.String getNoteContent()
public void setNoteContent(java.lang.String noteContent)
public java.lang.String getNoteHeading()
public void setNoteHeading(java.lang.String noteHeading)
public Rectangle getNoteWindowPosition()
public void setNoteWindowPosition(Rectangle noteWindowPosition)
public AnnotationIconType getAnnotationIconType()
public void setAnnotationIconType(AnnotationIconType annotationIconType)
public AttachmentType getAttachType()
public void setAttachType(AttachmentType attachType)
attachType
- AttachmentType you want to set.public java.lang.String getAttachedFileName()
public void setAttachedFileName(java.lang.String attachedFileName)
public byte[] getAttachedStream()
public void setAttachedStream(byte[] attachedStream)
public java.lang.String getDescription()
public void setDescription(java.lang.String discription)
public FileIconType getFileIconType()
public void setFileIconType(FileIconType iconType)
public Color getIconColor()
public void setIconColor(Color iconColor)
public float getIconOpacity()
public void setIconOpacity(float iconOpacity)
iconOpacity
- the Opacity value you want to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |