PdfPageLayerCollection class
The class provides methods and properties to handle the collections of PdfPageLayer.
- Inheritance
- 
    - Object
- PdfObjectCollection
- PdfPageLayerCollection
 
Constructors
- PdfPageLayerCollection(PdfPage page)
- Initializes a new instance of the PdfPageLayerCollection class with PDF page.
Properties
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.