Adds a file attachment to the current page.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public void AddAttachment( string fileName, byte[] data, Rect rc, AttachmentIconEnum icon, Color iconColor ) |
Visual Basic |
---|
Public Sub AddAttachment ( _ fileName As String, _ data As Byte(), _ rc As Rect, _ 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).
- 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.