Vcl.Dialogs.TFileTypeItems.Add
Delphi
function Add: TFileTypeItem;
C++
HIDESBASE TFileTypeItem* __fastcall Add(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TFileTypeItems |
Description
Add a file type to the collection.
Add adds a file type to the file types collection. After you add the file type, you need to set its properties as in this sample:
with FileOpenDialog1.FileTypes.Add do begin DisplayName := ‘All Files’; FileMask := ‘*.*’; end;