combit List & Label 27 - .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 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also