[]
Removes the specified Layer object from the LayerCollection.
public bool Remove(Layer item)
| Type | Name | Description |
|---|---|---|
| Layer | item | A Layer object to remove. |
| Type | Description |
|---|---|
| bool | A bool value. |
LayerCollection collection = new LayerCollection(_report);
Layer layer = new Layer("Layer1");
collection.Add(layer);
bool removed = collection.Remove(layer);