Click or drag to resize

PdfLayerCollection Class

Represent pdf layer collection.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics.Layer PdfLayerCollection

Namespace: Spire.Pdf.Graphics.Layer
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfLayerCollection

The PdfLayerCollection type exposes the following members.

Properties
Name Description
Public property Count
Gets the number of pdf layers contained.
Public property Item Int32
Get the pdf layer of the index.
Public property Item String
Get the pdf layer of name. Notice: Pdf layer name may be is not unique. If exist duplication of name,return first pdf layer of name. If not exist pdf layer of name,return null;
Top
Methods
Name Description
Public method AddLayer(String)
Add a new pdf layer.
Public method AddLayer(String, PdfVisibility)
Add a new pdf layer.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method NewOutline
Create a new empty pdf layer outline.
Public method RemoveLayer(String)
Remove the pdf layer. Notice: Pdf layer name may be is not unique. If exist duplication of name,will remove all pdf layers of name.
Public method RemoveLayer(PdfLayer)
Remove the pdf layer.
Public method RemoveLayer(String, Boolean)
Remove the pdf layer. Notice: Pdf layer name may be is not unique. If exist duplication of name,will remove all pdf layers of name.
Public method RemoveLayer(PdfLayer, Boolean)
Remove the pdf layer.
Protected method SynchronizeFromPdfPrimitive
Synchronize the instance from the pdf primitive.
Protected method SynchronizeToPdfPrimitive
Synchronize the instance to the pdf primitive.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also