[]
Defines the collection of Model3DView objects.
PdfCollection<Model3DView>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.
| Model3DViewProperties
| Model3DView
The 3D view specified as Model3DViewProperties or Model3DView.
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
findByName(name): Model3DView;
Finds and returns the first Model3DView in this collection whose Model3DView.name equals the specified 'name', if Model3DView.name is empty then Model3DView.uiName is used.
string
The name of the view to find.
The Model3DView with the specified name, or
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
PdfCollection.free
getAt(index): Model3DView;
Gets the item with the specified index.
number
The index of the item.
PdfCollection.getAt
indexByName(name): number;
Returns the zero-based index of the first Model3DView in this collection whose Model3DView.name equals the specified 'name', if Model3DView.name is empty then Model3DView.uiName is used.
string
The name of the view to locate.
number
The zero-based index of the first occurrence of a view with the specified name if found; otherwise, -1.
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