ImageGear .NET
documents Property

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

Reference

ImGearThumbnailList class
ImGearThumbnailList Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback