Web API Reference MapGuide Open Source

MgCoordinateCollection Class Reference
[MgCoordinateCollection]

Inherits MgDisposable.

Inheritance diagram for MgCoordinateCollection:

Inheritance graph
[legend]
List of all members.

Detailed Description

MgCoordinateCollection provides support for defining an ordered set of coordinates.


Public Member Functions

virtual INT32 Add (MgCoordinate *value)
 Adds the specified coordinate to the end of the collection. Returns the index of the newly added coordinate.
virtual void Clear ()
 Removes all coordinates from the collection.
virtual bool Contains (const MgCoordinate *value) const
 Returns true if the collection contains the specified coordinate, false otherwise.
virtual INT32 GetCount () const
 Gets the number of coordinates in the collection.
virtual MgCoordinateGetItem (INT32 index) const
 Gets the coordinate in the collection at the specified index. Throws an invalid argument exception if the index is out of range.
virtual INT32 IndexOf (const MgCoordinate *value) const
 Returns the index of the specified coordinate in the collection or -1 if the coordinate does not exist.
virtual void Insert (INT32 index, MgCoordinate *value)
 Inserts the specified coordinate at the specified index within the collection. Items following the insertion point are moved down to accommodate the new item. Throws an invalid argument exception if the specified index is out of range.
 MgCoordinateCollection ()
 Construct a MgCoordinateCollection object.
virtual void Remove (const MgCoordinate *value)
 Removes the specified coordinate from the collection. Throws an invalid argument exception if the item does not exist within the collection.
virtual void RemoveAt (INT32 index)
 Removes the coordinate at the specified index from the collection. Throws an invalid argument exception if the index does not exist within the collection.
virtual void SetItem (INT32 index, MgCoordinate *value)
 Sets the coordinate in the collection at the specified index to the specified value. Throws an invalid argument exception if the index is out of range.