ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI_namespace > ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.MarkCollection : addMarks Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function addMarks( markCollection : MarkCollection ) : (Any); |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfMarkCollection.addMarks(MarkCollection); |
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.
ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.MarkCollection
MarkCollection Members