ImageGear .NET v24.12 - Updated
addPage Method

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > ImGearPageCollection class : addPage Method
Appends a page to the end of the collection.
Syntax
ASP.NET Ajax Javascript (Specification) 
function addPage( 
   page : ImGearPage
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfImGearPageCollection.addPage(ImGearPage);

Parameters

page
The page to add to the collection.
Remarks

This function appends the page passed in as parameter to the collection. It is similar to the standard JavaScript Array.push() function.

After this function has added the page to the collection, it will raise the pageAdded event.

Note: A page object instance can be added only to one ImGearThumbnailList control in a web page. A page object instance must be unique within a ImGearThumbnailList control on an entire web page. Both of these constraints arise because of the selected property. The first constraint exists because a single Page object can either be selected or not-selected and it makes no sense to allow that to span multiple ImGearThumbnailList controls. The second constraint exists because of the "selectedPages" collection on the ImGearThumbnailList control. Each thumbnail in the control should be individually selectable, but that will be impossible to represent if two of them are represented by the same object.

See Also

Reference

ImGearPageCollection class
ImGearPageCollection Members