Class RuntimeMapLayerCollection
A collection of runtime map layers
Inheritance
Implements
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.Mapping
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class RuntimeMapLayerCollection : KeyValueCollection<string, RuntimeMapLayer>, IList<RuntimeMapLayer>, ICollection<RuntimeMapLayer>, IEnumerable<RuntimeMapLayer>, IList, ICollection, IEnumerable
Properties
| Improve this Doc View SourceItem[Int32]
Gets or sets the element at the specified index.
Declaration
public override RuntimeMapLayer this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type | Description |
|---|---|
| RuntimeMapLayer | The element at the specified index. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.NotSupportedException | The property is set and the System.Collections.Generic.IList<T> is read-only. |
Methods
| Improve this Doc View SourceAdd(RuntimeMapLayer)
Adds the specified layer.
Declaration
public override void Add(RuntimeMapLayer item)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeMapLayer | item | The layer. |
Overrides
GetByObjectId(String)
Gets a runtime map layer by its object id.
Declaration
public RuntimeMapLayer GetByObjectId(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The object id. |
Returns
| Type | Description |
|---|---|
| RuntimeMapLayer |
Insert(Int32, RuntimeMapLayer)
Inserts an item to the System.Collections.Generic.IList<T> at the specified index.
Declaration
public override void Insert(int index, RuntimeMapLayer item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which |
| RuntimeMapLayer | item | The object to insert into the System.Collections.Generic.IList<T>. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.NotSupportedException | The System.Collections.Generic.IList<T> is read-only. |
OnBeforeItemAdded(RuntimeMapLayer)
Called when [before item added].
Declaration
protected override void OnBeforeItemAdded(RuntimeMapLayer item)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeMapLayer | item | The layer. |
Overrides
OnItemAdded(RuntimeMapLayer)
Called when [item added].
Declaration
protected override void OnItemAdded(RuntimeMapLayer item)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeMapLayer | item | The layer. |
Overrides
OnItemRemoved(RuntimeMapLayer)
Called when [item removed].
Declaration
protected override void OnItemRemoved(RuntimeMapLayer value)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeMapLayer | value | The layer. |
Overrides
Remove(String)
Removes the specified layer by its name.
Declaration
public void Remove(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
SelectKey(RuntimeMapLayer)
Selects the key given the value.
Declaration
protected override string SelectKey(RuntimeMapLayer value)
Parameters
| Type | Name | Description |
|---|---|---|
| RuntimeMapLayer | value | The value. |
Returns
| Type | Description |
|---|---|
| System.String |