Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / OptionalContentProperties Class / RemoveLayer Method / RemoveLayer(String) Method
The name of the layer to remove.

In This Topic
    RemoveLayer(String) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Sub RemoveLayer( _
       ByVal name As System.String _
    ) 
    public void RemoveLayer( 
       System.string name
    )

    Parameters

    name
    The name of the layer to remove.
    See Also