Web API Reference MapGuide Open Source
virtual void MgPointCollection::SetItem ( INT32  index,
MgPoint value 
) [virtual]

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.

.NET Syntax
virtual void SetItem(int index, MgPoint value);
Java Syntax
virtual void SetItem(int index, MgPoint value);
PHP Syntax
virtual void SetItem(int index, MgPoint value);

Parameters:
index (int) Index of the coordinate to set.
value (MgPoint) point to place into the collection.
Exceptions:
MgIndexOutOfRangeException 


Comments or suggestions? Send us feedback.