ImageGear .NET - Updated
addMarks Method

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > MarkCollection class : addMarks Method
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

Reference

MarkCollection class
MarkCollection Members