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


In This Topic
    CollectionTemplates Class
    In This Topic
    This collection contains the templates used by the current project. It can also be used to add additional project templates.
    This collection contains the templates used by the current project. It can also be used to add additional project templates.
    Object Model
    CollectionTemplates ClassTemplate Class
    Syntax
    'Declaration
     
    
    Public Class CollectionTemplates 
       Inherits combit.Reporting.Dom.DomCollectionBase(Of Template)
    public class CollectionTemplates : combit.Reporting.Dom.DomCollectionBase<Template> 
    public ref class CollectionTemplates : public combit.Reporting.Dom.DomCollectionBase<Template> 
    Example
    // add new template to project
    Template newProjTempl = new Template(proj.ProjectTemplates);
    newProjTempl.FileName  = @"c:\temp\proj.lst";
    
    
    // iterate all templates
    foreach (Template templ in proj.Templates)
    {
        string templName = templ.FileName;
    }
    
    ' add new template to project
    Dim newProjTempl As Template = New Template(proj.ProjectTemplates)
    newProjTempl.FileName = "c:\temp\proj.lst"
    
    ' iterate all templates
    For Each templ As Template In proj.ProjectTemplates
       Dim templName As String = templ.FileName
    Next
    

     

    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