[]
Represents a collection of FontHandler objects.
PdfKeyedObjectCollection<Font, FontHandler>get count(): number;
Gets the number of items in the map.
number
PdfKeyedObjectCollection.count
get id(): number;
Gets the reference to the object.
number
PdfKeyedObjectCollection.id
get last(): TItem;
Gets last item in the collection.
TItem
PdfKeyedObjectCollection.last
get om(): ObjectManager;
Gets the owner ObjectManager instance.
PdfKeyedObjectCollection.om
add(item): void;
Adds an item to the end of the collection.
The item to add.
void
PdfKeyedObjectCollection.add
clear(): void;
Clears the collection.
void
PdfKeyedObjectCollection.clear
contains(item): boolean;
Determines whether the item is in the collection.
boolean
true if the item is in the collection, false otherwise.
PdfKeyedObjectCollection.contains
containsKey(key): boolean;
Determines whether the item with specified key exists in the collection.
boolean
true if the item with the specified key exists in the collection, false otherwise.
PdfKeyedObjectCollection.containsKey
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
PdfKeyedObjectCollection.free
get(key): FontHandler;
Gets the item with the specified key.
PdfKeyedObjectCollection.get
getAt(index): FontHandler;
Gets the item with the specified index.
number
The index of the item.
PdfKeyedObjectCollection.getAt
getFontHandler(font): FontHandler;
Gets an existing FontHandler associated with a specified Font, or creates a new one if such font does not exist.
The font
The existing or newly created FontHandler.
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
PdfKeyedObjectCollection.insert
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
PdfKeyedObjectCollection.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.
PdfKeyedObjectCollection.remove
removeAt(index): void;
Removes the item at specified index.
number
The index of the item to remove.
void
PdfKeyedObjectCollection.removeAt
removeByKey(key): boolean;
Removes the item with specified key from the collection.
The key to remove.
boolean
true if the item with specified key was actually removed, false otherwise.
PdfKeyedObjectCollection.removeByKey
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
PdfKeyedObjectCollection.setAt