combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / Layers Property
Example


Layers Property
This collection contains the layers of the current project. It can also be used to add new layers to the project.
Syntax
'Declaration
 
Public ReadOnly Property Layers As CollectionLayers
 
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; 
}
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