This property sets the file types initially displayed in the dialog that appears when loading or saving an annotation file.

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

Property Value

The string representing the file types displayed in the dialog

Explanation

The AnnotationFileExtension property sets the file types initially displayed in the dialog that appears when loading or saving an annotation file. When the "Open Annotation File" button or "Save Annotation File" button in the IkToolbar control are clicked, a dialog is displayed and the file types that can be opened or saved are shown in this dialog. This property sets the file types shown in the dialog.

To set the string, start with the file explanation followed by a "|" symbol as a delimeter and the the file extensions to be displayed. Multiple entries are seperated by a semicolon ";". If a blank string ("") is set in this property, the default value "All files" will be displayed.

Example

The code below illustlates how to set the default folder to "C:\Images" and to set the file types to "xml and dat" or to "All Files":

[Visual Basic.NET]
ImageKit1.IkToolBar.AnnotationFilePath = "c:\images"
ImageKit1.IkToolBar.AnnotationFileExtension = "xml,dat files|*.xml;*.dat|All files|*.*"

[Visual C#.NET]
imageKit1.IkToolBar.AnnotationFilePath = "c:\\Images";
imageKit1.IkToolBar.AnnotationFileExtension = "xml,dat files|*.xml;*.dat|All files|*.*";

See Also

IkToolBar Members | Newtone.ImageKit.Win.IkToolBar

 

The ImageKit.NET2 is created by Newtone Corporation