ImageGear .NET v25.1 - Updated
addPoints Method

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > PointCollection class : addPoints Method
Appends a collection of points to the end of the collection.
Syntax
ASP.NET Ajax Javascript (Specification) 
function addPoints( 
   pointCollection : PointCollection
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfPointCollection.addPoints(PointCollection);

Parameters

pointCollection
The collection of points to add to the collection.
Remarks

The function will append a collection of points to the end of the collection. It is similar to the standard JavaScript Array.concat() function. This function copies the points so it can guarantee that it calls the pointChanged event at the proper time. If pointCollection contains no points, this function will do nothing and will not raise the pointAdded event.

After this function has added all the new points to the collection, it will raise the pointAdded event, without providing a specific point. It will set ImageGear.Web.UI.PointEventArgs.index to the new index of the first point added and ImageGear.Web.UI.PointEventArgs.length to the number of new points added.

See Also

Reference

PointCollection class
PointCollection Members