PdfPageLayerCollection class

The class provides methods and properties to handle the collections of PdfPageLayer.



PdfPageLayerCollection(PdfPage page)
Initializes a new instance of the PdfPageLayerCollection class with PDF page.


count int
Gets number of the elements in the collection.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


add({String? name, bool? visible}) PdfPageLayer
Creates a new PdfPageLayer and adds it to the end of the collection.
addLayer(PdfPageLayer layer) int
Adds PdfPageLayer to the collection.
clear() → void
Clears layers from the PdfPageLayerCollection.
indexOf(PdfPageLayer layer) int
Returns index of the PdfPageLayer in the collection if exists, -1 otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
remove({PdfPageLayer? layer, String? name}) → void
Removes layer from the collection.
removeAt(int index) → void
Removes layer by its index from collections
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.
operator [](int index) PdfPageLayer
Gets PdfPageLayer by its index from PdfPageLayerCollection.