TX Text Control ActiveX

ImageFilters Property

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.

Examples

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

Limitations

Read only, run time only.

See Also