FileDialog.addFileType

Add an allowed file type. If a filetype combobox exists in the file dialog on the particular platform, this adds entries to it. When the user choose a filetype in the combobox, only the files of that type are listed. If no types are added or if the filetypes combobox is not supported by the particular platform then all files are listed regardless of their types.

Filetypes must be added in the correct format, i.e. all fields are enclosed within curly braces and separated by a space. Extensions must contain a dot. The format is described below in which the carats indicate essential required space.

{{Description} {.ext1 .ext2 .ext3 ...}}
              ^      ^     ^     ^
class FileDialog
addFileType
(
this T
)
(
string fileType
)

Parameters

fileType string

The file type to add.

Return Value

Type: auto

This dialog to aid method chaining.

Meta