Accusoft.ThumbnailXpressSdk Namespace > ThumbnailItemCollection Class : AddItemsFromDirectory Method |
'Declaration Public Function AddItemsFromDirectory( _ ByVal directory As String, _ ByVal collectionIndex As Integer _ ) As Integer
'Usage Dim instance As ThumbnailItemCollection Dim directory As String Dim collectionIndex As Integer Dim value As Integer value = instance.AddItemsFromDirectory(directory, collectionIndex)
public int AddItemsFromDirectory( string directory, int collectionIndex )
public: int AddItemsFromDirectory( string* directory, int collectionIndex )
public: int AddItemsFromDirectory( String^ directory, int collectionIndex )
Only the first page of multi-page images are added.
This method does not wait for images to be generated before returning. The thumbnail images are generated in the background. This means a thumbnail's image data (for example, its bitmap) is likely not available immediately after this method returns. Use the ThumbnailXpress.ItemComplete event to determine when an item's image has completed being generated before attempting to programmatically access its image data.
Note: When a path is passed to this method without a final trailing slash, the parent of the path is used as the directory.
PDF support is deprecated in ImagXpress, please use PDF Xpress instead for PDF support via the Licensing.UsePdfXpressForPDFsOnly property.