[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.LayerCollection.Contains

Contains Method

Contains(Layer)

Gets a value indicating whether the LayerCollection contains the specified Layer.

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

A Layer object for which to check.

Returns
Type Description
bool

A bool value. true if the LayerCollection contains the specified Layer; otherwise, false.

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