Creates a new layer and adds it to the end of the collection.

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public PdfPageLayer Add(
	string name,
	bool isVisible
)
Public Function Add ( 
	name As String,
	isVisible As Boolean
) As PdfPageLayer
public:
PdfPageLayer^ Add(
	String^ name, 
	bool isVisible
)
member Add : 
        name : string * 
        isVisible : bool -> PdfPageLayer 

Parameters

name
String
Layer Name.
isVisible
Boolean
Layer Visibility.

Return Value

PdfPageLayer
Created layer.

See Also