GdPicture.NET.14
GdPicture14 Namespace / ThumbnailEx Class / LoadFromDirectory Method / LoadFromDirectory(String,Boolean,String) Method
The path from which thumbnails will be generated.
Set to True to include sub folders else False.
The search string to match against the names of files in path. IE: "*.tif" The parameter cannot end in two periods ("..") or contain two periods ("..") followed by DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars. Wildcard character: - * Zero or more characters. - ? Exactly one character.





In This Topic
LoadFromDirectory(String,Boolean,String) Method
In This Topic
Load thumbnails from directory. The ThumbnailEx control will generate a thumbnail for each image or PDF document found in the directory. Thumbnails will be generated asynchronously.
Syntax
'Declaration
 
Public Overloads Function LoadFromDirectory( _
   ByVal Path As String, _
   ByVal IncludeSubFolders As Boolean, _
   ByVal SearchPattern As String _
) As GdPictureStatus
public GdPictureStatus LoadFromDirectory( 
   string Path,
   bool IncludeSubFolders,
   string SearchPattern
)
public function LoadFromDirectory( 
    Path: String;
    IncludeSubFolders: Boolean;
    SearchPattern: String
): GdPictureStatus; 
public function LoadFromDirectory( 
   Path : String,
   IncludeSubFolders : boolean,
   SearchPattern : String
) : GdPictureStatus;
public: GdPictureStatus LoadFromDirectory( 
   string* Path,
   bool IncludeSubFolders,
   string* SearchPattern
) 
public:
GdPictureStatus LoadFromDirectory( 
   String^ Path,
   bool IncludeSubFolders,
   String^ SearchPattern
) 

Parameters

Path
The path from which thumbnails will be generated.
IncludeSubFolders
Set to True to include sub folders else False.
SearchPattern
The search string to match against the names of files in path. IE: "*.tif" The parameter cannot end in two periods ("..") or contain two periods ("..") followed by DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars. Wildcard character: - * Zero or more characters. - ? Exactly one character.

Return Value

A member of the GdPictureStatus enumeration.
See Also