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


In This Topic
    CollectionLayers Class
    In This Topic
    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)
    public class CollectionLayers : combit.Reporting.Dom.DomCollectionBase<Layer> 
    public ref class CollectionLayers : public combit.Reporting.Dom.DomCollectionBase<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 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also