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


combit.ListLabel24.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 Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ProjectBase Class
ProjectBase Members