Class PdfCollectionItem
- Namespace
- iText.Kernel.Pdf.Collection
- Assembly
- itext.kernel.dll
public class PdfCollectionItem : PdfObjectWrapper<PdfDictionary>
- Inheritance
-
PdfCollectionItem
- Inherited Members
Constructors
PdfCollectionItem(PdfCollectionSchema)
public PdfCollectionItem(PdfCollectionSchema schema)
Parameters
schema
PdfCollectionSchema
Methods
AddItem(string, string)
Sets the value of the collection item.
public virtual PdfCollectionItem AddItem(string key, string value)
Parameters
key
stringis a key with which the specified value is to be associated
value
stringis a value to be associated with the specified key
Returns
- PdfCollectionItem
this instance to support fluent interface
AddItem(string, PdfDate)
Sets the date value of the collection item.
public virtual void AddItem(string key, PdfDate date)
Parameters
key
stringis a key with which the specified date value is to be associated
date
PdfDateis a PDF date value to be associated with the specified key
AddItem(string, PdfNumber)
Sets the number value of the collection item.
public virtual void AddItem(string key, PdfNumber number)
Parameters
key
stringis a key with which the specified number value is to be associated
number
PdfNumberis a PDF number value to be associated with the specified key
IsWrappedObjectMustBeIndirect()
protected override bool IsWrappedObjectMustBeIndirect()
Returns
SetPrefix(string, string)
Adds a prefix for the Collection item.
public virtual PdfCollectionItem SetPrefix(string key, string prefix)
Parameters
Returns
- PdfCollectionItem
this instance to support fluent interface
Remarks
Adds a prefix for the Collection item. You can only use this method after you have set the value of the item.