MapGuide API Reference
|
MgPointCollection provides support for defining an ordered set of points. More...
Public Member Functions | |
virtual void | Add (MgPoint *value) |
Adds the specified coordinate to the end of the collection. | |
virtual void | Clear () |
Removes all points from the collection. | |
virtual bool | Contains (const MgPoint *value) const |
Returns true if the collection contains the specified point, false otherwise. | |
virtual INT32 | GetCount () const |
Gets the number of points in the collection. | |
virtual MgPoint * | GetItem (INT32 index) const |
Gets the point in the collection at the specified index. Throws an invalid argument exception if the index is out of range. | |
virtual INT32 | IndexOf (const MgPoint *value) const |
Returns the index of the specified point in the collection or -1 if the point does not exist. | |
virtual void | Insert (INT32 index, MgPoint *value) |
Inserts the specified point 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. | |
MgPointCollection () | |
Construct a MgPointCollection object. | |
virtual bool | Remove (const MgPoint *value) |
Removes the specified point from the collection. | |
virtual void | RemoveAt (INT32 index) |
Removes the point 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, MgPoint *value) |
Sets the point in the collection at the specified index to the specified value. Throws an invalid argument exception if the index is out of range. |
MgPointCollection provides support for defining an ordered set of points.