Interface IRegionCollection
Defines a collection of IRegion uniquely identified by their Name.
System.Collections.Generic.IEnumerable<Sartorius.SAF.Presentation.Regions.IRegion>.GetEnumerator()
System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IRegionCollection : IEnumerable<IRegion>, IEnumerable, INotifyCollectionChanged
Properties
View SourceItem[String]
Gets the IRegion with the name received as index.
Declaration
IRegion this[string regionName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | regionName | Name of the region to be retrieved. |
Property Value
Type | Description |
---|---|
IRegion | The IRegion identified with the requested name. |
Methods
View SourceAdd(IRegion)
Adds a IRegion to the collection.
Declaration
void Add(IRegion region)
Parameters
Type | Name | Description |
---|---|---|
IRegion | region | Region to be added to the collection. |
ContainsRegionWithName(String)
Checks if the collection contains a IRegion with the name received as parameter.
Declaration
bool ContainsRegionWithName(string regionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | regionName | The name of the region to look for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the region is contained in the collection, otherwise false. |
Remove(String)
Removes a IRegion from the collection.
Declaration
bool Remove(string regionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | regionName | Name of the region to be removed. |
Returns
Type | Description |
---|---|
System.Boolean | true if the region was removed from the collection, otherwise false. |