ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / PointCollection class / addPoints Method

In This Topic
    addPoints Method
    In This Topic
    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