Vcl.Dialogs.TCustomFileDialog.FileTypes
Delphi
property FileTypes: TFileTypeItems read FFileTypes write SetFileTypes;
C++
__property TFileTypeItems* FileTypes = {read=FFileTypes, write=SetFileTypes};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TCustomFileDialog |
Description
Determines the file type masks (filters) available in the dialog.
FileTypes is an instance of TFileTypeItems containing a list of file types, each of which is an instance of TFileTypeItem.
To add file types to a dialog, get the TFileTypeItems instance from FileTypes and use the TFileTypeItems.Add method as in this sample:
with FileOpenDialog1.FileTypes.Add do begin DisplayName := ‘All Files’; FileMask := ‘*.*’; end;