combit List & Label 25 - .NET Online Web Help
CollectionLayers Class
Members  Example 


combit.ListLabel25.Dom Namespace : 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 DomCollectionBase
public class CollectionLayers : DomCollectionBase 
public ref class CollectionLayers : public DomCollectionBase 
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

System.Object
   System.Collections.CollectionBase
      combit.ListLabel25.Dom.DomCollectionBase
         combit.ListLabel25.Dom.CollectionLayers

Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

CollectionLayers Members
combit.ListLabel25.Dom Namespace