Vcl.Dialogs.TOpenDialog.FilterIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FilterIndex: Integer read GetFilterIndex write FFilterIndex default 1;

C++

__property int FilterIndex = {read=GetFilterIndex, write=FFilterIndex, default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TOpenDialog

Description

Determines which filter is selected by default when the dialog opens.

FilterIndex determines which of the file types in Filter is selected by default when the dialog opens. Set FilterIndex to 1 to choose the first file type in the list as the default, or set FilterIndex to 2 to choose the second file type as the default, and so forth. If the value of FilterIndex is out or range, the first file type listed in Filter is the default.

See Also

Code Examples