ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / ImGearDocument class / pages Property

In This Topic
    pages Property
    In This Topic
    Gets the page collection that is contained in this document.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function get_pages() : ImGearPageCollection
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfImGearDocument.get_pages();
    Remarks

    This property gives access to the pages that are contained in a document.

    Example: The JavaScript code to add pages is shown below:

    var doc = new ImageGear.Web.UI.ImGearDocument({documentIdentifier:'MyImage.tif'});

    var _page = new ImageGear.Web.UI.ImGearPage({pageNumber:1,caption:'This is the Caption for page 1'});

    doc.get_pages().addPages(_page); //add the new page to the document
    See Also