Namespace TallComponents.PDF
Class LayerCollection
A collection of layer objects.
This collection is read-only, and can be obtained via the document.Layers getter.
Syntax
public class LayerCollection : Object,IEnumerable<Layer>
Properties
Int32 Count
Get the number of Layers actually contained in the LayerCollection
Layer Item
Get an Layer by zero-based index from the LayerCollection.
Methods
Void Add(Layer)
Add a new layer to the end of this collection.
Void AddRange(Layer[])
Add a layer array to the end of this collection.
Void Clear()
Remove all layers in this collection.
LayerCollection Clone()
Clones this LayerCollection, and detach it from the original document.
Boolean Contains(Layer)
Determine whether an Layer is in the LayerCollection.
IEnumerator<Layer> GetEnumerator()
Implements strong typed IEnumerable<T>.GetEnumerator.
Int32 IndexOf(Layer)
Searches for the specified Layer in the LayerCollection.
Void Insert(Int32,Layer)
Inserts a new layer to this collection.
Boolean Remove(Layer)
Remove the specified layer.
Void RemoveAt(Int32)
Remove the layer on the specified index.