Vcl.Dialogs.TCustomFileDialog.FileTypeIndex
Delphi
property FileTypeIndex: Cardinal read FFileTypeIndex write FFileTypeIndex default 1;
C++
__property unsigned FileTypeIndex = {read=FFileTypeIndex, write=FFileTypeIndex, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TCustomFileDialog |
Description
Determines which filter is selected by default when the dialog opens.
FileTypeIndex determines which of the file types in FileTypes is selected by default when the dialog opens. Set FileTypeIndex to 1 to choose the first file type in the list as the default, or set FileTypeIndex to 2 to choose the second file type as the default, and so forth. If the value of FileTypeIndex is out or range, the first file type listed in FileTypes is the default.