Click or drag to resize
Pdf Library for .NET

PdfLayerCollection Methods

The PdfLayerCollection type exposes the following members.

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 methodGetEnumeratorReturns an enumerator over the layers.
Public methodIndexOfGets the index of the layer in the collection, or -1.
Public methodMoveMoves a layer of the collection to another index of it, in the viewer's list.
Public methodRemove(PdfLayer)Removes a layer; what it draws stays on the pages, always shown.
Public methodRemove(PdfLayer, 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