ComponentOne PDF for .NET
AddAttachment(String,RectangleF,Int32,AttachmentIconEnum,Color) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > AddAttachment Method : AddAttachment(String,RectangleF,Int32,AttachmentIconEnum,Color) Method
The file that will be included as an attachment.
Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
Index of the page that contains the attachment.
AttachmentIconEnum value that determines the appearance of the attachment icon.
The color of the attachment icon.
Adds a file attachment to the document.
Syntax
'Declaration
 
Public Overloads Sub AddAttachment( _
   ByVal file As System.String, _
   ByVal rc As System.Drawing.RectangleF, _
   ByVal page As System.Integer, _
   ByVal icon As AttachmentIconEnum, _
   ByVal iconColor As System.Drawing.Color _
) 
public void AddAttachment( 
   System.string file,
   System.Drawing.RectangleF rc,
   System.int page,
   AttachmentIconEnum icon,
   System.Drawing.Color iconColor
)

Parameters

file
The file that will be included as an attachment.
rc
Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
page
Index of the page that contains the attachment.
icon
AttachmentIconEnum value that determines the appearance of the attachment icon.
iconColor
The color of the attachment icon.
Remarks
When the user moves the mouse over an area of the page that contains an attachment, the mouse pointer and tool tip change to indicate that the user can retrieve the attachment. The user can right-click the attachment area to open or save the attachment.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List