ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / MarkCollection class / addMarks Method

In This Topic
    addMarks Method
    In This Topic
    Appends a collection of marks to the collection.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function addMarks( 
       markCollection : MarkCollection
    ) : (Any);
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfMarkCollection.addMarks(MarkCollection);

    Parameters

    markCollection
    The collections of marks to add to the collection.
    Remarks

    The function will add a collection of marks to the the collection. It is similar to the standard JavaScript Array.concat() function. If markCollection contains no marks that are not already in this collection, this function will do nothing and will not raise the markAdded event.

    After this function has added all the new marks to the collection, it will raise the markAdded event. It will not provide a specific mark as part of the event, even if it only added one mark. This function will set ImageGear.Web.UI.PointEventArgs.length to the number of new marks added. Note that this may be different from the number of marks in markCollection if some of those marks were already present in this collection.

    See Also