ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / LayerCollection Class / Contains Method
A Layer object for which to check.
Example

In This Topic
    Contains Method (LayerCollection)
    In This Topic
    Gets a value indicating whether the LayerCollection contains the specified Layer.
    Syntax
    'Declaration
     
    Public Function Contains( _
       ByVal item As Layer _
    ) As Boolean
    public bool Contains( 
       Layer item
    )

    Parameters

    item
    A Layer object for which to check.

    Return Value

    A System.Boolean value. true if the LayerCollection contains the specified Layer; otherwise, false.
    Example
    LayerCollection collection = new LayerCollection(_report);
    Layer layer = new Layer("Layer1");
    collection.Add(layer);
    bool contains = collection.Contains(layer);
    See Also