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.

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

Syntax

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

Parameters

name
String
Pdf layer name.
withContent
Boolean
If true,remove content with the pdf layer.Otherwise,false.

Return Value

Boolean
True if item is successfully removed; otherwise, false. This method also returns false if item was not found

See Also