The layers of a document (
Layers), or those nested under a layer
(
Layers), in a viewer's order.
Inheritance HierarchySystemObject
ExpertPdf.Anywhere.PdfDocumentLayerCollection
Namespace: ExpertPdf.Anywhere.PdfDocumentAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic class LayerCollection : IEnumerable
Public Class LayerCollection
Implements IEnumerable
The LayerCollection type exposes the following members.
Properties| | Name | Description |
|---|
 | Count | Gets the number of layers in the collection. |
 | ItemInt32 | Gets the layer at an index. |
 | ItemString | Gets the first layer with a name, or null. |
Top
Methods| | Name | Description |
|---|
 | Add(String) | Adds a layer, shown when the document is opened. |
 | Add(String, Boolean) | Adds a layer. |
 | Clear | Removes every layer of the collection; what they draw stays on the pages, always shown. |
 | Contains | Gets whether the collection contains the layer. |
 | Flatten |
Keeps everything the layers draw as plain page content and removes the layers (of the whole document).
|
 | GetEnumerator | Gets the collection enumerator. |
 | IndexOf | Gets the index of the layer in the collection, or -1. |
 | Remove(Layer) | Removes a layer; what it draws stays on the pages, always shown. |
 | Remove(Layer, Boolean) | Removes a layer, with or without what it draws. |
 | RemoveAt | Removes the layer at an index; what it draws stays on the pages. |
Top
See Also