This property sets the image type that can be displayed in the Thumbnail Control.

[Visual Basic] Public Property FileExtension As String
[C#] public string FileExtension {get; set;}

Property Value

String value denoting the file extention

Explanation

The FileExtension property sets the image type that can be displayed in the Thumbnail Control. This property is enabled when the FilePath property is not an empty string or null (Nothing in Visual Basic). When setting multiple image file types in the FileExtension property, separate the entries with a semicolon. Note: The FileExtension property is not case sensitive so "BMP" and "bmp" are treated as identical.

 

Example

  Thumbnail1.FileExtension = "BMP;JPG;PNG;"

This will load all JPEG and PNG files and BMP files from the specifed directory.

When using a wildcard, you cannot set the same file extension twice. So Thumbnail1.FileExtension = "*.bmp;001.bmp" will result in an error. You must enter either "*1.bmp" or "001.bmp".

Example

  Correct: Thumbnail1.FileExtension = "002.bmp;001.bmp"

  Incorrect: Thumbnail1.FileExtension = "*.bmp;001.bmp"

See Also

Thumbnail Members | Newtone.ImageKit.Win.Thumbnail

 

The ImageKit.NET3 is created by Newtone Corporation