combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / CollectionLayers Class
Members Example


CollectionLayers Class
This collection contains the layers of the current project. It can also be used to add new layers to the project.
Object Model
CollectionLayers ClassLayer Class
Syntax
'Declaration
 
Public Class CollectionLayers 
   Inherits combit.Reporting.Dom.DomCollectionBase(Of Layer)
 
Example
// create new layer
Layer layerNew = new Layer(proj.Layers); 
layerNew.Name = "Layer01"; 
layerNew.Condition = "Page() == 2"; 
 
// iterate all layers
foreach (Layer layer in proj.Layers) 
{ 
    string layerName = layer.Name; 
    string layerCond = layer.Condition; 
}
Inheritance Hierarchy
Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also