addPoint method

int addPoint(
  1. ArcGISPoint point
)

Add a new point to the end of the mutable point collection.

Parameters:

  • point — The point to add.

Return Value: the point index where the point was added. If an error occurred, then -1 is returned.

Implementation

int addPoint(ArcGISPoint point) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePointCollection_addPoint(
        _handle, point._handle, errorHandler);
  });
}