[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.LayerCollection.Remove

Remove Method

Remove(Layer)

Removes the specified Layer object from the LayerCollection.

Declaration
public bool Remove(Layer item)
Parameters
Type Name Description
Layer item

A Layer object to remove.

Returns
Type Description
bool

A bool value. true if the Layer was successfully removed; otherwise, false.

Implements
Examples
LayerCollection collection = new LayerCollection(_report);
Layer layer = new Layer("Layer1");
collection.Add(layer);
bool removed = collection.Remove(layer);