combit List & Label 25 - .NET Online Web Help
CollectionTemplates Class
Members  Example 


combit.ListLabel25.Dom Namespace : CollectionTemplates Class
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 DomCollectionBase
public class CollectionTemplates : DomCollectionBase 
public ref class CollectionTemplates : public DomCollectionBase 
Example
// add new template to project
Template newProjTempl = new Template(proj.Templates); 
newProjTempl.FileName  = @"c:\temp\proj.lst"; 
 
// iterate all templates
foreach (Template templ in proj.Templates) 
{ 
    string templName = templ.FileName; 
}
// add new template to project 
Template newProjTempl = new Template(proj.Templates);  
newProjTempl.FileName  = @"c:\temp\proj.lst";  
  
// iterate all templates 
foreach (Template templ in proj.Templates)  
{  
    string templName = templ.FileName;  
}
Inheritance Hierarchy

System.Object
   System.Collections.CollectionBase
      combit.ListLabel25.Dom.DomCollectionBase
         combit.ListLabel25.Dom.CollectionTemplates

Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

CollectionTemplates Members
combit.ListLabel25.Dom Namespace