Class FileAttachmentElement
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
This class represents a file attachment in the PDF document
[ClassInterface(ClassInterfaceType.AutoDual)]
public class FileAttachmentElement : PageElement
- Inheritance
-
FileAttachmentElement
- Inherited Members
Constructors
FileAttachmentElement(RectangleF, Stream, string)
Creates a file attachment from a stream and a link in page to the attachment
public FileAttachmentElement(RectangleF linkRectangle, Stream fileStream, string attachmentName)
Parameters
linkRectangle
RectangleFThe attachment link rectangle in page
fileStream
StreamThe file stream
attachmentName
stringA name for attachment
FileAttachmentElement(RectangleF, string)
Creates a file attachment and a link in page to the attachment
public FileAttachmentElement(RectangleF linkRectangle, string filePath)
Parameters
linkRectangle
RectangleFThe attachment link rectangle in page
filePath
stringThe path to file to be attached
Properties
IconColor
The file attachment icon color. By default is black
public Color IconColor { get; set; }
Property Value
IconType
The file attachment icon type. The default icon is paper clip
public FileAttachmentIcon IconType { get; set; }
Property Value
LinkRectangle
Gets or sets the file attachment icon rectangle in PDF page
public RectangleF LinkRectangle { get; set; }
Property Value
Text
The file attachment text
public string Text { get; set; }