public class SpreadsheetAttachment extends Attachment implements ITwoDObject
Represents a file attached to an Excel document.
Modifier and Type | Method and Description |
---|---|
String |
getAlternativeText()
Gets the descriptive (alternative) text associated with the attached file.
|
byte[] |
getContent()
Gets the attached file content.
|
double |
getHeight()
Gets the height of the attachment frame in points.
|
byte[] |
getPreviewImageContent()
Gets the attached file preview image as a byte array.
|
String |
getSourceFullName()
Gets the full name of the attached file.
|
double |
getWidth()
Gets the width of the attachment frame in points.
|
double |
getX()
Gets the horizontal offset of the attachment frame from worksheet left border in points.
|
double |
getY()
Gets the vertical offset of the attachment frame from worksheet top border in points.
|
boolean |
isLink()
Gets a value indicating whether the content contains only a link to the file.
|
void |
setAlternativeText(String value)
Sets the descriptive (alternative) text associated with the attached file.
|
void |
setContent(byte[] value)
Sets the attached file content.
|
void |
setHeight(double value)
Sets the height of the attachment frame in points.
|
void |
setPreviewImageContent(byte[] value)
Sets the attached file preview image as a byte array.
|
void |
setWidth(double value)
Sets the width of the attachment frame in points.
|
void |
setX(double value)
Sets the horizontal offset of the attachment frame from worksheet left border in points.
|
void |
setY(double value)
Sets the vertical offset of the attachment frame from worksheet top border in points.
|
createWatermarker, createWatermarker, createWatermarker, getDocumentInfo, updateContent
public byte[] getContent()
Gets the attached file content.
getContent
in class Attachment
public void setContent(byte[] value)
Sets the attached file content.
setContent
in class Attachment
value
- The attached file content.public final byte[] getPreviewImageContent()
Gets the attached file preview image as a byte array.
public final void setPreviewImageContent(byte[] value)
Sets the attached file preview image as a byte array.
value
- The attached file preview image as a byte array.public final boolean isLink()
Gets a value indicating whether the content contains only a link to the file.
public final String getSourceFullName()
Gets the full name of the attached file.
public final String getAlternativeText()
Gets the descriptive (alternative) text associated with the attached file.
public final void setAlternativeText(String value)
Sets the descriptive (alternative) text associated with the attached file.
value
- The descriptive (alternative) text associated with the attached file.public final double getX()
Gets the horizontal offset of the attachment frame from worksheet left border in points.
getX
in interface ITwoDObject
public final void setX(double value)
Sets the horizontal offset of the attachment frame from worksheet left border in points.
value
- The x-coordinate of the attachment frame.public final double getY()
Gets the vertical offset of the attachment frame from worksheet top border in points.
getY
in interface ITwoDObject
public final void setY(double value)
Sets the vertical offset of the attachment frame from worksheet top border in points.
value
- The y-coordinate of the attachment frame.public final double getWidth()
Gets the width of the attachment frame in points.
getWidth
in interface ITwoDObject
public final void setWidth(double value)
Sets the width of the attachment frame in points.
value
- The width of the attachment frame in points.public final double getHeight()
Gets the height of the attachment frame in points.
getHeight
in interface ITwoDObject
public final void setHeight(double value)
Sets the height of the attachment frame in points.
value
- The height of the attachment frame in points.