combit List & Label 25 - .NET Online Web Help
Layers Property
Example 


combit.ListLabel25.Dom Namespace > ProjectBase Class : 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
public CollectionLayers Layers {get;}
public:
property CollectionLayers^ Layers {
   CollectionLayers^ get();
}
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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ProjectBase Class
ProjectBase Members