Table of Contents

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 RectangleF

The attachment link rectangle in page

fileStream Stream

The file stream

attachmentName string

A 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 RectangleF

The attachment link rectangle in page

filePath string

The path to file to be attached

Properties

IconColor

The file attachment icon color. By default is black

public Color IconColor { get; set; }

Property Value

Color

IconType

The file attachment icon type. The default icon is paper clip

public FileAttachmentIcon IconType { get; set; }

Property Value

FileAttachmentIcon

LinkRectangle

Gets or sets the file attachment icon rectangle in PDF page

public RectangleF LinkRectangle { get; set; }

Property Value

RectangleF

Text

The file attachment text

public string Text { get; set; }

Property Value

string