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.PointCollection : forEach Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function forEach( method : function, context : object ) : (Any); |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfPointCollection.forEach(function,object); |
This function calls the specified function once for each point 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 a copy of the point being enumerated, the second function parameter to the zero-based index of the point, and the third function parameter to the collection.
This function copies the list of points before starting the enumeration, so you can safely make changes to the collection during the enumeration process. Any points that you delete during the enumeration will be enumerated; any points that you add during the enumeration will not be enumerated, and any points that you change during the enumeration will be enumerated with their new value.
ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI.PointCollection
PointCollection Members