public class SpreadsheetAttachment extends Attachment implements ITwoDObject
Represents a file attached to an Excel document.
| Modifier and Type | Method and Description |
|---|---|
void |
checkImageType() |
String |
getAlternativeText()
Gets the descriptive (alternative) text associated with the attached file.
|
com.aspose.cells.OleObject |
getAsposeOleObject() |
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, getContentStream, getDocumentInfo, setContentStream, updateContentpublic final void checkImageType()
public final String getAlternativeText()
Gets the descriptive (alternative) text associated with the attached file.
public final com.aspose.cells.OleObject getAsposeOleObject()
public byte[] getContent()
Gets the attached file content.
getContent in class Attachmentpublic final double getHeight()
Gets the height of the attachment frame in points.
getHeight in interface ITwoDObjectpublic final byte[] getPreviewImageContent()
Gets the attached file preview image as a byte array.
public final String getSourceFullName()
Gets the full name of the attached file.
public final double getWidth()
Gets the width of the attachment frame in points.
getWidth in interface ITwoDObjectpublic final double getX()
Gets the horizontal offset of the attachment frame from worksheet left border in points.
getX in interface ITwoDObjectpublic final double getY()
Gets the vertical offset of the attachment frame from worksheet top border in points.
getY in interface ITwoDObjectpublic final boolean isLink()
Gets a value indicating whether the content contains only a link to the 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 void setContent(byte[] value)
Sets the attached file content.
setContent in class Attachmentvalue - The attached file content.public final void setHeight(double value)
Sets the height of the attachment frame in points.
value - The height of the attachment frame in points.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 void setWidth(double value)
Sets the width of the attachment frame in points.
value - The width of the attachment frame in points.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 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.Copyright © 2026. All rights reserved.