 |
PdfLayerCollection Class |
The layers of a document (
Layers), or those nested under a layer
(
Layers), in a viewer's order.
Inheritance HierarchySystemObject
SelectPdf.UniversalPdfLayerCollection
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic class PdfLayerCollection : IEnumerable<PdfLayer>,
IEnumerable
Public Class PdfLayerCollection
Implements IEnumerable(Of PdfLayer), IEnumerable
The PdfLayerCollection 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 | Returns an enumerator over the layers. |
 | IndexOf | Gets the index of the layer in the collection, or -1. |
 | Move | Moves a layer of the collection to another index of it, in the viewer's list. |
 | Remove(PdfLayer) | Removes a layer; what it draws stays on the pages, always shown. |
 | Remove(PdfLayer, 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