combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / CollectionRegions Class
Members Example


In This Topic
    CollectionRegions Class
    In This Topic
    With this class the single layout regions of the project can be set or get.
    Object Model
    CollectionRegions ClassRegion Class
    Syntax
    'Declaration
     
    
    Public Class CollectionRegions 
       Inherits combit.Reporting.Dom.DomCollectionBase(Of Region)
    public class CollectionRegions : combit.Reporting.Dom.DomCollectionBase<Region> 
    public ref class CollectionRegions : public combit.Reporting.Dom.DomCollectionBase<Region> 
    Example
    ProjectList proj = new ProjectList(new LL());
    proj.Open(@"C:\Projects\new.lst", LlDomFileMode.Create, LlDomAccessMode.ReadWrite);
    
    Region firstPage = proj.Regions.AddNew();
    firstPage.Condition = "Page() = 1";
    firstPage.Set(new PrinterSettings());
    
    Region followingPages = proj.Regions.AddNew();
    followingPages.Condition = "Page() > 1";
    followingPages.Set(new PrinterSettings());
    
    proj.Save();
    proj.Close();
    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