ImageGear .NET v24.12 - Updated
forEachMark Method

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > ArtPage class : forEachMark Method
Calls the specified function once for each mark on the page.
Syntax
ASP.NET Ajax Javascript (Specification) 
function forEachMark( 
   method : function,
   context : object
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfArtPage.forEachMark(function,object);

Parameters

method
The function to call.
context
An object that holds the context of the call.
Remarks

This function calls the specified function once for each mark on the ArtPage. The function will begin with the mark at the bottom of the Z-order and continue in order until it reaches the top of the Z-order. It is very similar to the ASP.NET Ajax Library, Array.forEach() function.

When forEachMark calls the function, it will set this to context, the first function parameter to the mark being enumerated, the second function parameter to the zero-based Z-index of the iteration, and the third function parameter to the collection.

This function copies the list of marks (but not the marks themselves) before starting the enumeration, so you can safely make changes to the collection during the enumeration process. Any marks that you delete during the enumeration will be enumerated; any marks that you add during the enumeration will not be enumerated, any marks that you change during the enumeration will be enumerated with their new value, and any mark that is reordered will be enumerated in the original order.

See Also

Reference

ArtPage class
ArtPage Members