Click or drag to resize

PdfAttachmentCollectionAdd Method

Adds an item to the PdfAttachmentCollection.

Namespace:  Patagames.Pdf.Net
Assemblies:   Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.57.2704
  Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.57.2704
Syntax
public void Add(
	PdfAttachment item
)

Parameters

item
Type: Patagames.Pdf.NetPdfAttachment
The object to add to the PdfAttachmentCollection.

Implements

ICollectionTAdd(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionThe item is null.
PdfParserExceptionThe item could not be added due to a malformed document's name tree.
ArgumentExceptionAn element with the same name already exists in the PdfAttachmentCollection.
ObjectDisposedExceptionThe attachment has been disposed.
See Also