combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / ProjectTemplates Property
Example


In This Topic
    ProjectTemplates Property
    In This Topic

    With this enumeration all project templates, which are defined in the opened List & Label project, can be read or new project templates can be defined.

    Syntax
    'Declaration
     
    
    Public ReadOnly Property ProjectTemplates As CollectionTemplates
    public CollectionTemplates ProjectTemplates {get;}
    public:
    property CollectionTemplates^ ProjectTemplates {
       CollectionTemplates^ get();
    }
    Example
    // Define a new project template
    Template newProjTempl = new Template(proj.Templates);
    newProjTempl.FileName = @"c:\temp\proj.lst";
    
    // Get all defined project templates
    foreach (Template templ in proj.Templates)
    {
        string templName = templ.FileName;
    }
    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