TXTextControl.TXTextControl.ImageFilters Property

This property returns a string which specifies the available image filters. The filter names are separated through a '|' sign. This string can be used to initialize the Filter property of a Common Dialog control.

Syntax

TXTextControl.ImageFilters

Data Types

String.

Limitations

Read only, run time only.

Example

This Basic example initializes an OpenFile dialog box with the names of the available image filters and then loads a selected image:

dlgFile.DialogTitle = "Insert Image"
dlgFile.Filename = ""
dlgFile.Filter = TXTextControl1.ImageFilters
dlgFile.FilterIndex = 1
dlgFile.Flags = cdlOFNPathMustExist Or cdlOFNFileMustExist _
   Or cdlOFNHideReadOnly
dlgFile.CancelError = True
dlgFile.ShowOpen
TXTextControl1.ImageInsertAsChar dlgFile.Filename, -1, 100, 100

See Also