ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / ImGearThumbnailList class / documents Property

In This Topic
    documents Property
    In This Topic
    Gets the document collection object that is contained in this control.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function get_documents() : ImGearDocumentCollection
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfImGearThumbnailList.get_documents();
    Remarks

    This property gives access to the documents that are contained in this control. For details refer to the ImGearDocument

    The documents property can be used to access the document collection for adding and removing documents from the control. The example code below illustrates how to add documents to the control.

    Example:

    The JavaScript code snippet to add documents to the control:

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

    // set the pages property of this document

    var _page = new ImageGear.Web.UI.ImGearPage({pageNumber:0, caption:'Page 0, the first page'});

    //add the new page to the document

    _doc.get_pages().addPage(_page);

    //add the newly created document _doc to the previously created ImGearThumbnailList control.

    ImGearThumbnailList1.get_documents().addDocument(_doc);
    See Also