public class SpreadsheetAttachmentCollection extends RemoveOnlyListBase<SpreadsheetAttachment>
This collection contains the items of type.SpreadsheetAttachment
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(byte[] fileContent,
String sourceFullName,
byte[] previewImageContent,
double x,
double y,
double width,
double height)
Adds an attachment to the
. |
void |
addLink(String sourceFullName,
byte[] previewImageContent,
double x,
double y,
double width,
double height)
Adds an attachment by a link (the document will not contain attached file content).
|
void |
removeFromDocument(SpreadsheetAttachment item) |
clear, isReadOnly, remove, removeAtaddInternally, contains, get_Item, getCount, getInnerList, indexOf, iteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final void addAttachment(byte[] fileContent,
String sourceFullName,
byte[] previewImageContent,
double x,
double y,
double width,
double height)
SpreadsheetWorksheet.fileContent - The content of the file to be attached.sourceFullName - The full name of the attached file (The extension is used to
determine appropriate application to open the file).previewImageContent - The attached file preview image as a byte array.x - The x-coordinate of the attachment frame (in points).y - The y-coordinate of the attachment frame (in points).width - The width of the attachment frame in points.height - The height of the attachment frame in points.public final void addLink(String sourceFullName, byte[] previewImageContent, double x, double y, double width, double height)
sourceFullName - The linked file path.previewImageContent - The attached file preview image as a byte array.x - The x-coordinate of the attachment frame (in points).y - The y-coordinate of the attachment frame (in points).width - The width of the attachment frame in points.height - The height of the attachment frame in points.public void removeFromDocument(SpreadsheetAttachment item)
removeFromDocument in class RemoveOnlyListBase<SpreadsheetAttachment>Copyright © 2026. All rights reserved.