com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class CellsAttachment

  • All Implemented Interfaces:
    ITwoDObject


    public class CellsAttachment
    extends Attachment
    implements ITwoDObject

    Represents a file attached to an Excel document.

    • Method Detail

      • getContent

        public byte[] getContent()

        Gets the attached file content.

        Specified by:
        getContent in class Attachment
        Returns:
        The attached file content.
      • setContent

        public void setContent(byte[] value)

        Sets the attached file content.

        Specified by:
        setContent in class Attachment
        Parameters:
        value - The attached file content.
      • getPreviewImageContent

        public final byte[] getPreviewImageContent()

        Gets the attached file preview image as a byte array.

        Returns:
        The attached file preview image as a byte array.
      • setPreviewImageContent

        public final void setPreviewImageContent(byte[] value)

        Sets the attached file preview image as a byte array.

        Parameters:
        value - The attached file preview image as a byte array.
      • isLink

        public final boolean isLink()

        Gets a value indicating whether the document contains only a link to the file.

        Returns:
        True if the attached file is referenced by a link (the document does not contain attached file content); otherwise, false.
      • getSourceFullName

        public final String getSourceFullName()

        Gets the full name of the attached file.

        Returns:
        The full name of the attached file.


        The extension is used to determine appropriate application to open the file.

      • getAlternativeText

        public final String getAlternativeText()

        Gets the descriptive (alternative) text associated with the attached file.

        Returns:
        The descriptive (alternative) text associated with the attached file.
      • setAlternativeText

        public final void setAlternativeText(String value)

        Sets the descriptive (alternative) text associated with the attached file.

        Parameters:
        value - The descriptive (alternative) text associated with the attached file.
      • getX

        public final double getX()

        Gets the horizontal offset of the attachment frame from worksheet left border in points.

        Specified by:
        getX in interface ITwoDObject
        Returns:
        The x-coordinate of the attachment frame.
      • setX

        public final void setX(double value)

        Sets the horizontal offset of the attachment frame from worksheet left border in points.

        Parameters:
        value - The x-coordinate of the attachment frame.
      • getY

        public final double getY()

        Gets the vertical offset of the attachment frame from worksheet top border in points.

        Specified by:
        getY in interface ITwoDObject
        Returns:
        The y-coordinate of the attachment frame.
      • setY

        public final void setY(double value)

        Sets the vertical offset of the attachment frame from worksheet top border in points.

        Parameters:
        value - The y-coordinate of the attachment frame.
      • getWidth

        public final double getWidth()

        Gets the width of the attachment frame in points.

        Specified by:
        getWidth in interface ITwoDObject
        Returns:
        The width of the attachment frame in points.
      • setWidth

        public final void setWidth(double value)

        Sets the width of the attachment frame in points.

        Parameters:
        value - The width of the attachment frame in points.
      • getHeight

        public final double getHeight()

        Gets the height of the attachment frame in points.

        Specified by:
        getHeight in interface ITwoDObject
        Returns:
        The height of the attachment frame in points.
      • setHeight

        public final void setHeight(double value)

        Sets the height of the attachment frame in points.

        Parameters:
        value - The height of the attachment frame in points.