ImageGear for .NET
forEach Method

Calls the specified function once for each mark in the collection.
Syntax
ASP.NET Ajax Javascript (Specification) 
function forEach( 
   method : function,
   context : object
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfMarkCollection.forEach(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 in the collection. It is very similar to the ASP.NET Ajax Library, Array.forEach() function.

When forEach 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 index of the iteration, and the third function parameter to the collection.

This function copies the list of marks 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, and any marks that you change during the enumeration will be enumerated with their new value.

See Also

Reference

MarkCollection class
MarkCollection Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback