Eplan Platform API
Eplan.EplApi.DataModel.Graphics Namespace / GraphicalLayerTable Class / RemoveLayer Method / RemoveLayer(GraphicalLayer) Method
Layer object to remove.

In This Topic
    RemoveLayer(GraphicalLayer) Method
    In This Topic
    Removes specified layer from the table. Note: Only custom layer can be removed.
    Syntax
    public bool RemoveLayer( 
       GraphicalLayer layer
    )
    public:
    bool RemoveLayer( 
       GraphicalLayer^ layer
    ) 

    Parameters

    layer
    Layer object to remove.

    Return Value

    true : Layer removed successfully.

    false : Removing failed (invalid layer was specified for removal).

    Exceptions
    ExceptionDescription
    This exception is thrown if the layer couldn't be removed. This may happen if the layer still contains some graphical objects.
    See Also