PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class / AddAttachment Method / AddAttachment(StorageFile,Rect,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).
AttachmentIconEnum value that determines the appearance of the attachment icon.
Windows.UI.Color of the attachment icon.

In This Topic
    AddAttachment(StorageFile,Rect,AttachmentIconEnum,Color) Method
    In This Topic
    Adds a file attachment to the current page.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AddAttachment( _
       ByVal file As StorageFile, _
       ByVal rc As Rect, _
       ByVal icon As AttachmentIconEnum, _
       ByVal iconColor As Color _
    ) 
    public void AddAttachment( 
       StorageFile file,
       Rect rc,
       AttachmentIconEnum icon,
       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).
    icon
    AttachmentIconEnum value that determines the appearance of the attachment icon.
    iconColor
    Windows.UI.Color of the attachment icon.
    See Also