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
regionNamestringThe name of the region to retrieve.
Property Value
Methods
AddNew()
Adds a new (non-standard) region to the collection.
public Region AddNew()
Returns
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
regionNamestringName to search.
Returns
- Region
The region or
nullif not found.