ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace > PointCollection class : addPoints Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function addPoints( pointCollection : PointCollection ) : (Any); |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfPointCollection.addPoints(PointCollection); |
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.