Vcl.Dialogs.TFileTypeItems.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add: TFileTypeItem;

C++

HIDESBASE TFileTypeItem* __fastcall Add();

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;

See Also