PdfPageLayerCollection class

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

Inheritance

Constructors

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

Properties

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

Methods

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.
inherited
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.
inherited

Operators

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