MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / LayerCollection Class / Remove Method
A Layer object to remove.
Example

In This Topic
Remove Method (LayerCollection)
In This Topic
Removes the specified Layer object from the LayerCollection.
Syntax
'Declaration
 
Public Function Remove( _
   ByVal item As Layer _
) As Boolean
 

Parameters

item
A Layer object to remove.

Return Value

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