public class AttachedFile extends Node implements IPageChildNode, IOutlineElementChildNode
Represents an attached file.
Constructor and Description |
---|
AttachedFile(Document document,
String path)
Initializes a new instance of the
AttachedFile class. |
AttachedFile(Document document,
String fileName,
InputStream attachedFileStream)
Initializes a new instance of the
AttachedFile class. |
AttachedFile(Document document,
String path,
InputStream icon,
com.aspose.ms.System.Drawing.Imaging.ImageFormat iconFormat)
Initializes a new instance of the
AttachedFile class. |
AttachedFile(Document document,
String fileName,
InputStream attachedFileStream,
InputStream icon,
com.aspose.ms.System.Drawing.Imaging.ImageFormat iconFormat)
Initializes a new instance of the
AttachedFile class. |
Modifier and Type | Method and Description |
---|---|
void |
accept(DocumentVisitor visitor)
Accepts the visitor of the node.
|
int |
getAlignment()
Gets the alignment.
|
String |
getAlternativeTextDescription()
Gets or sets a body an alternative text for the icon of the attached file.
|
String |
getAlternativeTextTitle()
Gets or sets a title of alternative text for the icon of the attached file.
|
byte[] |
getBytes()
Gets the binary data for an embedded file.
|
String |
getExtension()
Gets the extension of an embedded file.
|
String |
getFileName()
Gets the name of the embedded file.
|
String |
getFilePath()
Gets the path to the original file.
|
float |
getHeight()
Gets the original height of the embedded file icon.
|
float |
getHorizontalOffset()
Gets the horizontal offset.
|
byte[] |
getIcon()
Gets the binary data for the icon that is associated with the embedded file.
|
String |
getIconExtension()
Gets the extension of the icon.
|
Date |
getLastModifiedTime()
Gets the last modified time.
|
float |
getMaxHeight()
Gets the maximum height to display the embedded file icon.
|
float |
getMaxWidth()
Gets the maximum width to display the embedded file icon.
|
List<NoteTagCore> |
getTags()
Gets the list of tags of an attached file.
|
String |
getText()
Gets the text representation of the embedded file.
|
float |
getVerticalOffset()
Gets the vertical offset.
|
float |
getWidth()
Gets the original width of the embedded file icon.
|
boolean |
isPrintout()
Gets a value indicating whether the view of the file is printout.
|
boolean |
isSizeSetByUser()
Gets a value indicating whether the value of the size of the icon was explicitly updated by the user.
|
void |
setAlignment(int value)
Sets the alignment.
|
void |
setAlternativeTextDescription(String value)
Gets or sets a body an alternative text for the icon of the attached file.
|
void |
setAlternativeTextTitle(String value)
Gets or sets a title of alternative text for the icon of the attached file.
|
void |
setHorizontalOffset(float value)
Sets the horizontal offset.
|
void |
setLastModifiedTime(Date value)
Sets the last modified time.
|
void |
setMaxHeight(float value)
Sets the maximum height to display the embedded file icon.
|
void |
setMaxWidth(float value)
Sets the maximum width to display the embedded file icon.
|
void |
setPrintout(boolean value)
Sets a value indicating whether the view of the file is printout.
|
void |
setSizeSetByUser(boolean value)
Sets a value indicating whether the value of the size of the icon was explicitly updated by the user.
|
void |
setText(String value)
Sets the text representation of the embedded file.
|
void |
setVerticalOffset(float value)
Sets the vertical offset.
|
getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, isComposite
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSibling, getPreviousSibling
public AttachedFile(Document document, String path)
Initializes a new instance of the AttachedFile
class.
document
- A parent document of the attached file.path
- A string that contains the path to the file from which to create the AttachedFile
.public AttachedFile(Document document, String path, InputStream icon, com.aspose.ms.System.Drawing.Imaging.ImageFormat iconFormat)
Initializes a new instance of the AttachedFile
class.
document
- A parent document of the attached file.path
- A string that contains the path to the file from which to create the AttachedFile
.icon
- An icon for the attached file.iconFormat
- A format of the attached file icon.public AttachedFile(Document document, String fileName, InputStream attachedFileStream)
Initializes a new instance of the AttachedFile
class.
document
- A parent document of the attached file.fileName
- A name of the attached file.attachedFileStream
- A stream which contains the attached file bytes.public AttachedFile(Document document, String fileName, InputStream attachedFileStream, InputStream icon, com.aspose.ms.System.Drawing.Imaging.ImageFormat iconFormat)
Initializes a new instance of the AttachedFile
class.
document
- A parent document of the attached file.fileName
- A name of the attached file.attachedFileStream
- A stream which contains the attached file bytes.icon
- An icon for the attached file.iconFormat
- A format of the attached file icon.public Date getLastModifiedTime()
Gets the last modified time.
public void setLastModifiedTime(Date value)
Sets the last modified time.
value
- Date's value.
public float getMaxWidth()
Gets the maximum width to display the embedded file icon.
public void setMaxWidth(float value)
Sets the maximum width to display the embedded file icon.
value
- Maximum width's value.
public float getMaxHeight()
Gets the maximum height to display the embedded file icon.
public void setMaxHeight(float value)
Sets the maximum height to display the embedded file icon.
value
- Maximum height's value.
public boolean isSizeSetByUser()
Gets a value indicating whether the value of the size of the icon was explicitly updated by the user.
public void setSizeSetByUser(boolean value)
Sets a value indicating whether the value of the size of the icon was explicitly updated by the user.
value
- New value.
public String getText()
Gets the text representation of the embedded file. The string MUST NOT contain any characters of the value 10 (line feed) or 13 (carriage return).
public void setText(String value)
Sets the text representation of the embedded file. The string MUST NOT contain any characters of the value 10 (line feed) or 13 (carriage return).
value
- Text's value.
public final String getAlternativeTextTitle()
Gets or sets a title of alternative text for the icon of the attached file.
public final void setAlternativeTextTitle(String value)
Gets or sets a title of alternative text for the icon of the attached file.
public final String getAlternativeTextDescription()
Gets or sets a body an alternative text for the icon of the attached file.
public final void setAlternativeTextDescription(String value)
Gets or sets a body an alternative text for the icon of the attached file.
public int getAlignment()
Gets the alignment.
HorizontalAlignment
.public void setAlignment(int value)
Sets the alignment.
value
- Alignment's value.
public String getFileName()
Gets the name of the embedded file.
public String getFilePath()
Gets the path to the original file.
public float getWidth()
Gets the original width of the embedded file icon.
public float getHeight()
Gets the original height of the embedded file icon.
public float getHorizontalOffset()
Gets the horizontal offset.
getHorizontalOffset
in interface IPageChildNode
public void setHorizontalOffset(float value)
Sets the horizontal offset.
setHorizontalOffset
in interface IPageChildNode
value
- Offsets's value.
public float getVerticalOffset()
Gets the vertical offset.
getVerticalOffset
in interface IPageChildNode
public void setVerticalOffset(float value)
Sets the vertical offset.
setVerticalOffset
in interface IPageChildNode
value
- Offset's value.
public byte[] getIcon()
Gets the binary data for the icon that is associated with the embedded file.
public String getIconExtension()
Gets the extension of the icon.
public byte[] getBytes()
Gets the binary data for an embedded file.
public String getExtension()
Gets the extension of an embedded file.
public boolean isPrintout()
Gets a value indicating whether the view of the file is printout.
public void setPrintout(boolean value)
Sets a value indicating whether the view of the file is printout.
value
- New value.
public List<NoteTagCore> getTags()
Gets the list of tags of an attached file.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.