ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > ArtPage class : addMark Method |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfArtPage.addMark(Mark); |
The function will add a mark to the ArtPage, at the top of the Z-order. When they overlap, marks that are higher in the Z-order are drawn over marks that are lower.
A mark can only be associated with a single ArtPage at a time. You can move a mark from one ArtPage to another by first removing it from the current ArtPage, then associating it with the new one using ArtPage.addMark.
You can disconnect a mark from its ArtPage by calling either the removeFromPage or Mark.removeMark function.
After this function has added the new mark to the collection, it will raise the markAdded event.