RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFileTypeItems.Add Method

Add a file type to the collection.

Pascal
function Add: TFileTypeItem;
C++
__fastcall TFileTypeItem Add();

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;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!