Class PdfLayerCollection
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Represents the collection of layers in a PDF document.
public sealed class PdfLayerCollection : IEnumerable<PdfLayer?>, IEnumerable
- Inheritance
-
PdfLayerCollection
- Implements
- Inherited Members
Remarks
Enumerates the PdfLayer instances corresponding to layers defined in the PDF
document. An element may be null if the layer cannot be constructed from the
underlying PDF data.
Use this collection to inspect or modify layers in the document. Items are returned in the order in which the layers appear in the PDF.
Properties
- Count
Gets the number of layers contained in this collection.
Methods
- Add(string)
Creates a new PdfLayer with the specified name and adds it to the collection.
- Add(string, bool, params string[])
Creates a new PdfLayer with the specified name, initial visibility, and intents, and adds it to the collection.
- GetEnumerator()
Returns an enumerator that iterates through the collection of layers.