Class FileAttachment
Used to attach file objects.
public class FileAttachment : IDrawable
- Inheritance
-
FileAttachment
- Implements
- Inherited Members
Constructors
FileAttachment(EmbeddedFile)
Creates an attachment for the embedded file.
public FileAttachment(EmbeddedFile file)
Parameters
fileEmbeddedFile
Methods
DrawOn(Page)
Adds this attachment to the specified page.
public float[] DrawOn(Page page)
Parameters
pagePage
Returns
- float[]
SetContents(string)
Sets the contents of this attachment, the text a viewer shows for it.
public FileAttachment SetContents(string contents)
Parameters
contentsstring
Returns
SetIconPaperclip()
Uses the "Paperclip" icon.
public FileAttachment SetIconPaperclip()
Returns
SetIconPushPin()
Uses the "PushPin" icon.
public FileAttachment SetIconPushPin()
Returns
SetIconSize(float)
Sets the height of the icon.
public FileAttachment SetIconSize(float height)
Parameters
heightfloat
Returns
SetLocation(float, float)
Sets the location of the attachment icon on the page.
public FileAttachment SetLocation(float x, float y)
Parameters
Returns
SetTitle(string)
Sets the title of this attachment.
public FileAttachment SetTitle(string title)
Parameters
titlestring