[]
Represents a collection of ContentItemLink objects.
This is a typed view over a StructTreeItemCollection that exposes only its elements of the type ContentItemLink; mutations are applied to the underlying collection. The filtering is implemented in the underlying (WASM) layer.
PdfCollection<ContentItemLink>get count(): number;
Gets the number of items in the collection.
number
PdfCollection.count
get id(): number;
Gets the reference to the object.
number
PdfCollection.id
get last(): TItem;
Gets last item in the collection.
TItem
PdfCollection.last
get om(): ObjectManager;
Gets the owner ObjectManager instance.
PdfCollection.om
add(item): void;
Adds an item to the end of the collection.
The item to add.
void
PdfCollection.add
clear(): void;
Clears the collection.
void
PdfCollection.clear
contains(item): boolean;
Determines whether the item is in the collection.
boolean
true if the item is in the collection, false otherwise.
PdfCollection.contains
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
PdfCollection.free
getAt(index): ContentItemLink;
Gets the item with the specified index.
number
The index of the item.
PdfCollection.getAt
insert(index, item): void;
Inserts an item at a specific position in the collection.
number
The position where the item will be inserted.
The item to insert.
void
PdfCollection.insert
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
PdfCollection.rebind
remove(item): boolean;
Removes the specified item from the collection.
The item to remove.
boolean
true if the item was actually removed, false otherwise.
PdfCollection.remove
removeAt(index): void;
Removes the item at specified index.
number
The index of the item to remove.
void
PdfCollection.removeAt
setAt(index, item): void;
Sets the item at the specified index.
number
The index of the item, starting from 0.
The object to set.
void
PdfCollection.setAt