ThinkGeo.MapSuite.Core.GeoCollection‹T›
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
<!– Class –>
This class is a collection with some methods specialized for dealing with Layers and other spatial classes.
We have added some helpful methods like MoveUp, MoveDown, etc. These help when you are manipulating Layers.
Inheritance Hierarchy
Members Summary
Public Constructors
Name | Parameters | DeclaringType | Summary |
GeoCollection‹T› | | | This is the default constructor for the class. |
Protected Constructors
Name | Parameters | DeclaringType | Summary |
Public Methods
Name | Parameters | DeclaringType | Summary |
Add | String, T | GeoCollection<T> | This method adds an item to the collection by specifying the item and a key. |
Add | T | Collection<T> | This method adds an item to the collection. |
Add | T | GeoCollection<T> | This method adds an item to the collection. |
Clear | | Collection<T> | |
Contains | T | Collection<T> | |
Contains | String | GeoCollection<T> | This method returns whether an item is in the collection based on the specified key. |
CopyTo | T[], Int32 | Collection<T> | |
Equals | Object | Object | |
GetEnumerator | | Collection<T> | |
GetHashCode | | Object | |
GetKeys | | GeoCollection<T> | This method returns a collection of the keys in the collection. |
GetType | | Object | |
IndexOf | T | Collection<T> | |
Insert | Int32, T | Collection<T> | Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index. |
Insert | Int32, T | GeoCollection<T> | Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index. |
Insert | Int32, String, T | GeoCollection<T> | Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index and key. |
MoveDown | String | GeoCollection<T> | This method moves an item down in the collection. |
MoveDown | T | GeoCollection<T> | This method moves an item down in the collection. |
MoveDown | Int32 | GeoCollection<T> | This method moves an item down in the collection. |
MoveTo | T, Int32 | GeoCollection<T> | This method moves the item you specified to the location of toIndex in the collection. |
MoveTo | String, Int32 | GeoCollection<T> | This method moves the item with the key you specified to the location of toIndex in the collection. |
MoveTo | Int32, Int32 | GeoCollection<T> | This method moves the item at fromIndex to the location of toIndex in the collection. |
MoveToBottom | T | GeoCollection<T> | This method moves the item specified key to the bottom of the collection. |
MoveToBottom | Int32 | GeoCollection<T> | This method moves the item at the specified index to the bottom of the collection. |
MoveToBottom | String | GeoCollection<T> | This method moves the item with the specified key to the bottom of the collection. |
MoveToTop | T | GeoCollection<T> | This method moves the item specified to the top of the collection. |
MoveToTop | String | GeoCollection<T> | This method moves the item with the specified key to the top of the collection. |
MoveToTop | Int32 | GeoCollection<T> | This method moves the item at the specified index to the top of the collection. |
MoveUp | T | GeoCollection<T> | This method moves an item up in the collection. |
MoveUp | String | GeoCollection<T> | This method moves an item up in the collection. |
MoveUp | Int32 | GeoCollection<T> | This method moves an item up in the collection. |
Remove | String | GeoCollection<T> | This method removes an item from the collection based on the specified key. |
Remove | T | Collection<T> | |
RemoveAt | Int32 | Collection<T> | |
ToString | | Object | |
Protected Methods
Public Properties
Protected Properties
Name | Return | DeclaringType | Summary |
Items | IList<T> | Collection<T> | |
Public Events
Public Constructors
GeoCollection‹T›()
This is the default constructor for the class.
Parameters
Protected Constructors
Public Methods
Add(String, T)
This method adds an item to the collection by specifying the item and a key.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key to find the item. |
item | T<!– T –> | This parameter is the item you want added to the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Add(T)
This method adds an item to the collection.
This method adds an item to the collection, and the item's key will be a random GUID.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want added to the collection. |
<!– Collection{T} –>
Go Back
Add(T)
This method adds an item to the collection.
This method adds an item to the collection, and the item's key will be a random GUID.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want added to the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Clear()
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Contains(T)
Return Value
Return Type | Description |
Boolean<!– System.Boolean –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | |
<!– Collection{T} –>
Go Back
Contains(String)
This method returns whether an item is in the collection based on the specified key.
Return Value
Return Type | Description |
Boolean<!– System.Boolean –> | This method returns whether an item is in the collection based on the specified key. |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item you are searching for. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
CopyTo(T[], Int32)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Equals(Object)
Return Value
Return Type | Description |
Boolean<!– System.Boolean –> | |
Parameters
Name | Type | Description |
obj | Object<!– System.Object –> | |
<!– System.Object –>
Go Back
GetEnumerator()
Return Value
Return Type | Description |
IEnumerator<T><!– IEnumerator{T} –> | |
Parameters
GetHashCode()
Return Value
Return Type | Description |
Int32<!– System.Int32 –> | |
Parameters
GetKeys()
This method returns a collection of the keys in the collection.
Return Value
Return Type | Description |
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –> | This method returns a collection of the keys in the collection. |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
GetType()
Return Value
Return Type | Description |
Type<!– System.Type –> | |
Parameters
IndexOf(T)
Return Value
Return Type | Description |
Int32<!– System.Int32 –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | |
<!– Collection{T} –>
Go Back
Insert(Int32, T)
Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | The zero-based index at which item should be inserted. |
item | T<!– T –> | The object to insert. The value can be null for reference types. |
<!– Collection{T} –>
Go Back
Insert(Int32, T)
Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | The zero-based index at which item should be inserted. |
item | T<!– T –> | The object to insert. The value can be null for reference types. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Insert(Int32, String, T)
Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index and key.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | The zero-based index at which item should be inserted. |
key | String<!– System.String –> | The key to find the item. |
item | T<!– T –> | The object to insert. The value can be null for reference types. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveDown(String)
This method moves an item down in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item in the dictionary. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveDown(T)
This method moves an item down in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want to move down in the dictionary. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveDown(Int32)
This method moves an item down in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveTo(T, Int32)
This method moves the item you specified to the location of toIndex in the collection.
This method moves the item you specified to the location of toIndex in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want to move in the collection. |
toIndex | Int32<!– System.Int32 –> | This parameter is the target index that you want to move the item to in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveTo(String, Int32)
This method moves the item with the key you specified to the location of toIndex in the collection.
This method moves the item with the key you specified to the location of toIndex in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of item you want to move in the collection. |
toIndex | Int32<!– System.Int32 –> | This parameter is the target index that you want to move the item to in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveTo(Int32, Int32)
This method moves the item at fromIndex to the location of toIndex in the collection.
This method moves the item at fromIndex to the location of toIndex in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
fromIndex | Int32<!– System.Int32 –> | This parameter is the index of the item you want move from in the collection. |
toIndex | Int32<!– System.Int32 –> | This parameter is the target index that you want to move the item to in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToBottom(T)
This method moves the item specified key to the bottom of the collection.
This method moves the item specified key to the bottom of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want move to the bottom of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToBottom(Int32)
This method moves the item at the specified index to the bottom of the collection.
This method moves the item at the specified index to the bottom of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item you want move to the bottom of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToBottom(String)
This method moves the item with the specified key to the bottom of the collection.
This method moves the item with the specified key to the bottom of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item you want move to the bottom of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToTop(T)
This method moves the item specified to the top of the collection.
This method moves the item specified to the top of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want move to the top of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToTop(String)
This method moves the item with the specified key to the top of the collection.
This method moves the item with the specified key to the top of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item you want move to the top of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveToTop(Int32)
This method moves the item at the specified index to the top of the collection.
This method moves the item at the specified index to the top of the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item you want move to the top of the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveUp(T)
This method moves an item up in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | This parameter is the item you want to move up in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveUp(String)
This method moves an item up in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
MoveUp(Int32)
This method moves an item up in the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item in the collection. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Remove(String)
This method removes an item from the collection based on the specified key.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
key | String<!– System.String –> | This parameter is the key of the item you want to remove. |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Remove(T)
Return Value
Return Type | Description |
Boolean<!– System.Boolean –> | |
Parameters
Name | Type | Description |
item | T<!– T –> | |
<!– Collection{T} –>
Go Back
RemoveAt(Int32)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | |
<!– Collection{T} –>
Go Back
ToString()
Return Value
Return Type | Description |
String<!– System.String –> | |
Parameters
Protected Methods
ClearItems()
This method clears the items from the collection.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– Collection{T}(overriden) –>
Go Back
Finalize()
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
InsertItem(Int32, T)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | |
item | T<!– T –> | |
<!– Collection{T}(overriden) –>
Go Back
MemberwiseClone()
Return Value
Return Type | Description |
Object<!– System.Object –> | |
Parameters
OnAdded(AddedGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnAdding(AddingGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnClearedItems(ClearedItemsGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnClearingItems(ClearingItemsGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
e | NotifyCollectionChangedEventArgs<!– System.Collections.Specialized.NotifyCollectionChangedEventArgs –> | |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnInserted(InsertedGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnInserting(InsertingGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnPropertyChanged(PropertyChangedEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
e | PropertyChangedEventArgs<!– System.ComponentModel.PropertyChangedEventArgs –> | |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnRemoved(RemovedGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
OnRemoving(RemovingGeoCollectionEventArgs)
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
RemoveItem(Int32)
This method removes an item from the collection based on the specified index.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item you want to remove. |
<!– Collection{T}(overriden) –>
Go Back
SetItem(Int32, T)
This method allows you to set an item based on the index.
Return Value
Return Type | Description |
Void<!– System.Void –> | |
Parameters
Name | Type | Description |
index | Int32<!– System.Int32 –> | This parameter is the index of the item you want to set. |
item | T<!– T –> | This parameter is the item you want to set. |
<!– Collection{T}(overriden) –>
Go Back
Public Properties
Count
Return Value
Return Type |
Int32<!– System.Int32 –> |
<!– Collection{T} –>
Go Back
Item
Return Value
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Item
Return Value
Protected Properties
Items
Return Value
Return Type |
IList<T><!– IList{T} –> |
<!– Collection{T} –>
Go Back
Public Events
Added
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Adding
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
ClearedItems
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
ClearingItems
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
CollectionChanged
Event Arguments
Event Arguments |
NotifyCollectionChangedEventArgs<!– System.Collections.Specialized.NotifyCollectionChangedEventArgs –> |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Inserted
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Inserting
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
PropertyChanged
Event Arguments
Event Arguments |
PropertyChangedEventArgs<!– System.ComponentModel.PropertyChangedEventArgs –> |
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Removed
Event Arguments
<!– ThinkGeo.MapSuite.Core.GeoCollection{T} –>
Go Back
Removing
Event Arguments