PdfLayerCollection
RemoveLayer Method (PdfLayer, Boolean)
|
Remove the pdf layer.
Namespace:
Spire.Pdf.Graphics.Layer
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public bool RemoveLayer(
PdfLayer layer,
bool withContent
)
Public Function RemoveLayer (
layer As PdfLayer,
withContent As Boolean
) As Boolean
public:
bool RemoveLayer(
PdfLayer^ layer,
bool withContent
)
member RemoveLayer :
layer : PdfLayer *
withContent : bool -> bool
Parameters
-
layer
-
Type:
Spire.Pdf.Graphics.Layer
PdfLayer
The pdf layer.
-
withContent
-
Type:
System
Boolean
If true,remove content with the pdf layer.Otherwise,false.
Return Value
Type:
Boolean
True if item is successfully removed; otherwise, false. This method also
returns false if item was not found
See Also