combit List & Label 29 - .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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also