Table of Contents

Class CollectionRegions

Namespace
combit.Reporting.Dom
Assembly
combit.ListLabel31.CrossPlatform.dll

Represents a collection of Region objects with special handling for the non-deletable standard region.

public class CollectionRegions : DomCollectionBase<Region>, IList<Region>, ICollection<Region>, IReadOnlyList<Region>, IReadOnlyCollection<Region>, IEnumerable<Region>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IDomCollectionBase
Inheritance
CollectionRegions
Implements
Inherited Members

Remarks

The collection always keeps at least one region ("Standard"). Clear operations and cloning logic respect this invariant.

Properties

this[string]

Gets the region with the specified name or null if not found.

public Region this[string regionName] { get; }

Parameters

regionName string

The name of the region to retrieve.

Property Value

Region

The Region with the specified name, or null if not found.

Methods

AddNew()

Adds a new (non-standard) region to the collection.

public Region AddNew()

Returns

Region

The created Region.

Clear()

Clears all regions except for the mandatory standard region.

public void Clear()

GetRegion(string)

Looks up a region by name.

protected Region GetRegion(string regionName)

Parameters

regionName string

Name to search.

Returns

Region

The region or null if not found.