[]
Gets a value indicating whether the LayerCollection contains the specified Layer.
public bool Contains(Layer item)
Type | Name | Description |
---|---|---|
Layer | item | A Layer object for which to check. |
Type | Description |
---|---|
bool | A bool value. |
LayerCollection collection = new LayerCollection(_report);
Layer layer = new Layer("Layer1");
collection.Add(layer);
bool contains = collection.Contains(layer);