Click or drag to resize

LayerCollection Class

The layers of a document (Layers), or those nested under a layer (Layers), in a viewer's order.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PdfDocumentLayerCollection

Namespace: ExpertPdf.Anywhere.PdfDocument
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class LayerCollection : IEnumerable

The LayerCollection type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of layers in the collection.
Public propertyItemInt32Gets the layer at an index.
Public propertyItemStringGets the first layer with a name, or null.
Top
Methods
 NameDescription
Public methodAdd(String)Adds a layer, shown when the document is opened.
Public methodAdd(String, Boolean)Adds a layer.
Public methodClearRemoves every layer of the collection; what they draw stays on the pages, always shown.
Public methodContainsGets whether the collection contains the layer.
Public methodFlatten Keeps everything the layers draw as plain page content and removes the layers (of the whole document).
Public methodGetEnumeratorGets the collection enumerator.
Public methodIndexOfGets the index of the layer in the collection, or -1.
Public methodRemove(Layer)Removes a layer; what it draws stays on the pages, always shown.
Public methodRemove(Layer, Boolean)Removes a layer, with or without what it draws.
Public methodRemoveAtRemoves the layer at an index; what it draws stays on the pages.
Top
See Also