AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgCoordinate* MgCoordinateIterator::GetCurrent (  )  [virtual]

Gets the current coordinate. After an iterator is created or after a Reset, MoveNext must be called to advance the iterator to the first coordinate before calling GetCurrent; otherwise, the current position is undefined and an exception is thrown.

.NET Syntax
virtual MgCoordinate GetCurrent();
Java Syntax
virtual MgCoordinate GetCurrent();
PHP Syntax
virtual MgCoordinate GetCurrent();

Returns:
The coordinate at the current position.
Exceptions:
MgIndexOutOfRangeException