When an image file is chosen for an image object and the File Dialog is displayed, this property sets the file type that first appears in the File Dialog.

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

Property Value

The string representing the file type that first appears in the File Dialog

Explanation

When an image file is chosen for an image object and the File Dialog is displayed, the ImageFileExtension property sets the file type that first appears in the File Dialog.

The syntax is as follows: First is the explanation of the file type followed by a "|", then the file extension. If multiple file extensions appear after a single explanation, use a semicolon ";" between file extentions. For multiple explanations and file extensions, continue after the "|" with another explanation followed by "|" and so on. These will be added as seperate items in the combo box that appears in the File Dialog. If you put a blank string ("") in this property then the item "All Files" will appear in the combo box. Capital letters and lower case letters are treated as the same.

 

Examples:

If the default folder is "C:\Images" and the three items you want to appear are: "BMP", "JPG,PNG", and "All Files" then:

Visual Basic.NET:
     ImageKit1.Edit.ImageFilePath = "c:\images"
     ImageKit1.Edit.ImageFileExtension = "Bitmap Files | *.bmp | Jpeg, Png Files | *.jpg;*.png | All Files | *.*"

Visual C#.NET:
     imageKit1.Edit.ImageFilePath = "c:\\images"
     imageKit1.Edit.ImageFileExtension = "Bitmap Files | *.bmp | Jpeg, Png Files | *.jpg;*.png | All Files | *.*";

Also See

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation