ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace > ImGearPage class : ImGearPage Constructor |
ASP.NET Ajax Javascript (Specification) | |
---|---|
ImageGear.Web.UI.ImGearPage = function() {}; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var instanceVar = new ImageGear.Web.UI.ImGearPage(); |
An ImGearPage object can be created by passing input parameter ImageGear.Web.UI.ImGearPageCreateArgs with property pageNumber. It is not necessary to create the ImageGear.Web.UI.ImGearPageCreateArgs. The parameters can also be passed as shown in the examples below:
Example 1
In this example, an ImGearPage object is created using just the pageNumber parameter:
var newpage = new ImageGear.Web.UI.ImGearPage ({pageNumber: 1});
Example 2
In the following example, an ImGearPage object is created using the pageNumber and the caption properties:
var newpage = new ImageGear.Web.UI.ImGearPage ({pageNumber: 1, caption:”Page1”});