Class TemplateCollection

A collection of Templates.

System.Object
  Stonefield.Collections.BaseKeyedCollection<ITemplate>
    Stonefield.Query.ReportEngine.TemplateCollection
public class TemplateCollection : BaseKeyedCollection<ITemplate>, ITemplateCollection

Class Members

MemberDescription

Constructor

CollectionChanged

TemplateCollectionUpdated

Raised when the template collection has been updated.

TemplateExtension

The extension for template files; set to "sqt".

Add

Adds an item to the collection.

public virtual void Add(ITemplate item);

Clear

Clears the collection.

public virtual void Clear();

Contains

Returns true if the collection contains the specified item.

public sealed bool Contains(ITemplate item);

CopyTemplate

Copies the specified template to the specified name and adds the copy to the collection.

public sealed ITemplate CopyTemplate(ITemplate template,
    string name);

CopyTo

public virtual void CopyTo(ITemplate[] array,
    int arrayIndex);

GetEnumerator

Returns an enumerator that iterates through the collection.

public virtual IEnumerator<ITemplate> GetEnumerator();

GetItem

Returns the item with the specified name or ID.

public sealed ITemplate GetItem(string name);

public sealed ITemplate GetItem(int index);

GetItems

Returns an array with all items in the collection.

public ITemplate[] GetItems();

LoadTemplates

Loads the templates found in the folder specified in RootFolder into the collection.

public sealed void LoadTemplates();

New

Creates an item and adds it to the collection.

public virtual ITemplate New(string name);

public virtual ITemplate New();

Remove

Deletes the template file when it's removed from the collection.

public virtual bool Remove(ITemplate item);

Count

The number of items in the collection.

IsReadOnly

Indicates whether the collection is read-only.

Item

RootFolder

The folder for all template files.

Requirements

Namespace: Stonefield.Query.ReportEngine
Assembly: reports.dll