[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Layers.OptionalContentProperties.RemoveLayer

RemoveLayer Method

RemoveLayer(OptionalContentGroup)

Removes a specified layer. Note that this method does not remove the content associated with the layer. For content removal, see RemoveLayers(bool, params OptionalContentGroup[]).

Declaration
public void RemoveLayer(OptionalContentGroup layer)
Public Sub RemoveLayer(layer As OptionalContentGroup)
Parameters
Type Name Description
OptionalContentGroup layer

The OptionalContentGroup object that specifies the layer to remove.

RemoveLayer(string)

Removes a layer with a specified name. Throws an exception if the layer with the specified name does not exist. Note that this method does not remove the content associated with the layer. For content removal, see RemoveLayers(bool, params OptionalContentGroup[]).

Declaration
public void RemoveLayer(string name)
Public Sub RemoveLayer(name As String)
Parameters
Type Name Description
string name

The name of the layer to remove.