@Deprecated public class CellsAttachmentCollection extends RemoveOnlyListBase<CellsAttachment>
Represents a collection of attachments in an Excel document.
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(byte[] fileContent,
String sourceFullName,
byte[] previewImageContent,
double x,
double y,
double width,
double height)
Deprecated.
Adds an attachment to the
CellsWorksheet . |
void |
addLink(String sourceFullName,
byte[] previewImageContent,
double x,
double y,
double width,
double height)
Deprecated.
Adds an attachment by a link (the document will not contain attached file content).
|
clear, isReadOnly, remove, removeAt
public final void addAttachment(byte[] fileContent, String sourceFullName, byte[] previewImageContent, double x, double y, double width, double height)
Adds an attachment to the CellsWorksheet
.
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)
Adds an attachment by a link (the document will not contain attached file content).
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.