ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / ImGearPageCollection class / setPage Method

In This Topic
    setPage Method
    In This Topic
    Puts the page at the required index in the collection.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function setPage( 
       index : number(Integer),
       page : ImGearPage
    ) : (Any);
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfImGearPageCollection.setPage(number(Integer),ImGearPage);

    Parameters

    index
    The zero-based index of the page to change.
    page
    The new value to assign to the specified page.
    Remarks

    This function puts the page at the required index. This function will not add a new page to the collection; the collection must contain a page at the given index before you call this function.

    This function will raise two events, the pageRemoved event for the removal of the existing page and the pageAdded

    See Also