WRAPPER_API bool Remove(long index)
The Remove method removes the specified CoordPoint from this CoordPointCollection. If no such CoordPoint exists, a GeoCalcException will be thrown with GeoCalcException::get_ErrorCode that specifies IndexOutOfRange. This method returns a boolean value indicating the success of the operation.
void CoordPointCollection_Remove(GEOCALCPBW_NAMESPACE::CoordPointCollection & cpc)
{
_towchar name("the name of a CoordPoint");
if(cpc.Exists(name.c_str()))
{
if(! cpc.Remove(cpc.IndexWithName(name.c_str())))
{
AfxMessageBox("Remove failed");
}
}
}