Class TagCollection

The collection of tags used for reports.

System.Object
  Stonefield.Collections.BaseKeyedCollection<ITag>
    Stonefield.Collections.BasePersistedCollection<ITag>
      Stonefield.Query.ReportEngine.TagCollection
public class TagCollection : BasePersistedCollection<ITag>, ITagCollection

Class Members

MemberDescription

Constructor

The constructor.

CollectionChanged

Add

Adds an item to the collection.

public virtual void Add(ITag item);

CanRemoveItem

Determines if the item can be removed from the collection and the table.

public virtual bool CanRemoveItem(ITag item);

CanSaveItem

Determines if the specified item can be saved.

public virtual bool CanSaveItem(ITag item);

Clear

Clears the collection.

public virtual void Clear();

Contains

Returns true if the collection contains the specified item.

public sealed bool Contains(ITag item);

CopyTo

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

CreateDefaultTags

The tag collection should contain at least one "All" tag to include all reports. This method adds such a tag to the collection if it wasn't loaded from storage.

public sealed void CreateDefaultTags(ILocalizer localizer);

CreateTable

Creates the table if it doesn't exist using the specified open connection.

public virtual void CreateTable(IDbConnection conn);

public virtual void CreateTable();

DeleteItem

Removes the specified item from the table and the collection.

public virtual bool DeleteItem(ITag item);

public virtual bool DeleteItem(string ID);

GetEnumerator

Returns an enumerator that iterates through the collection.

public virtual IEnumerator<ITag> GetEnumerator();

GetItem

Returns the item with the specified name or ID.

public sealed ITag GetItem(string name);

public sealed ITag GetItem(int index);

GetItems

Returns an array with all items in the collection.

public ITag[] GetItems();

LoadCollection

Loads the collection from the table.

public virtual void LoadCollection();

public virtual void LoadCollection(IDbConnection conn);

public virtual void LoadCollection(IDbConnection conn,
    bool checkForDuplicates);

New

Creates an item and adds it to the collection.

public virtual ITag New(string name);

public virtual ITag New();

Remove

Removes an item from the collection.

public virtual bool Remove(ITag item);

SaveItem

Saves the specified item to the table.

public virtual bool SaveItem(ITag item);

AllReportsTag

A built-in dynamic tag representing all reports.

Count

The number of items in the collection.

IsReadOnly

Indicates whether the collection is read-only.

Item

Provider

The provider that connects to the database.

Reports

The report collection.

Requirements

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