This property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property.
thumbcontrolname.SetSort(long Val)
Property Value
Value | Explanation |
---|---|
0 | Not sorted |
1 | Sorted by file name |
2 | Sorted by date |
3 | Sorted by file extension + file name |
4 | Sorted by file extension + date |
5 | Sorted by folder name + file name |
6 | Sorted by folder name + date |
7 | Sorted by folder name + file extension + file name |
8 | Sorted by folder name + file extension + date |
In Visual Basic, the following constants can also be used: (ikSortNone = 0, ikSortFileName = 1, ikSortDate = 2, ikSortFileExtName = 3, ikSortFileExtDate = 4, ikSortDirFileName = 5, ikSortDirDate = 6, ikSortDirFileExtName = 7, ikSortDirFileExtDate = 8).
Explanation
The Sort property sets the sorting method for the image files contained in the folder(s) specified by the FilePath property. When the Sort property is set to 2 (ikSortDate), the files will be sorted according to the value set in the SortDate property.
The differences from ImageKit5 and ImageKit6
In the ImageKit5 and ImageKit6, the Sort property's date referred to the last time the file was modified. In the ImageKit8 if the Sort property is set to 2 (ikSortDate) and the SortDate property is set to 1 (ikSortDateLastWriteTime), then the ImageKit8 will behave in the same way as the ImageKit5 and ImageKit6.
Setting this value
This value can be set at design-time and run-time.Retrieving this value
This value can be retrieved at run-time.