Adds a file attachment to the document.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public void AddAttachment( string fileName, byte[] data, Rect rc, int page, AttachmentIconEnum icon, Color iconColor ) |
Visual Basic |
---|
Public Sub AddAttachment ( _ fileName As String, _ data As Byte(), _ rc As Rect, _ page As Integer, _ icon As AttachmentIconEnum, _ iconColor As Color _ ) |
Parameters
- fileName
- Type: System..::..String
Name of the attachment.
- data
- Type: array<System..::..Byte>[]()[][]
Data contained in the attachment.
- rc
- Type: System.Windows..::..Rect
Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
- page
- Type: System..::..Int32
Index of the page that contains the attachment.
- icon
- Type: C1.Silverlight.Pdf..::..AttachmentIconEnum
AttachmentIconEnum value that determines the appearance of the attachment icon.
- iconColor
- Type: System.Windows.Media..::..Color
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.