Click or drag to resize

PdfPageObjectsCollectionInsertObject Method (PdfPageObject, Int32)

Note: This API is now obsolete.

Insert an object to the collection. The page object is automatically freed.

Namespace:  Patagames.Pdf.Net
Assembly:  Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.24.2704
Syntax
[ObsoleteAttribute("This method is obsolete. Please use Insert instead.", 
	false)]
public void InsertObject(
	PdfPageObject item,
	int insertAfter
)

Parameters

item
Type: Patagames.Pdf.NetPdfPageObject
Instance of PdfPageObject class. It can be PdfImageObject for example.
insertAfter
Type: SystemInt32
After that index an object will be inserted. -1 for add at the collection's head
Remarks
Caution note Caution
If you insert the same objects multiple times, then an error will occur during disposing those objects.
See Also