SpreadsheetAttachment

SpreadsheetAttachment class

Represents a file attached to an Excel document.

public class SpreadsheetAttachment : Attachment, ITwoDObject

Properties

Name Description
AlternativeText { get; set; } Gets or sets the descriptive (alternative) text associated with the attached file.
override Content { get; set; } Gets or sets the attached file content.
Height { get; set; } Gets or sets the height of the attachment frame in points.
IsLink { get; } Gets a value indicating whether the content contains only a link to the file.
PreviewImageContent { get; set; } Gets or sets the attached file preview image as a byte array.
SourceFullName { get; } Gets the full name of the attached file.
Width { get; set; } Gets or sets the width of the attachment frame in points.
X { get; set; } Gets or sets the horizontal offset of the attachment frame from worksheet left border in points.
Y { get; set; } Gets or sets the vertical offset of the attachment frame from worksheet top border in points.

Methods

Name Description
CreateWatermarker() Loads a content from the attached file.
CreateWatermarker(LoadOptions) Loads a content from the attached file with the specified load options.
CreateWatermarker(LoadOptions, WatermarkerSettings) Loads a content from the attached file with the specified load options and settings.
GetDocumentInfo() Gets the information about a document stored in the attached file.

See Also