FMX.ExtCtrls.TDropTarget.FilterIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FilterIndex: Integer read FFilterIndex write FFilterIndex default 1;

C++

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

Properties

Type Visibility Source Unit Parent
property published
FMX.ExtCtrls.pas
FMX.ExtCtrls.hpp
FMX.ExtCtrls TDropTarget

Description

Represents the index of the currently active filter.

FilterIndex can be used to select one of the filters defined by the Filter property.

For example, if the value of the Filter property is 'Applications (*.exe)|*.EXE|Text files (*.txt)|*.TXT' and the value of the FilterIndex property is 2, then *.txt files will be accepted by the TDropTarget control.

Note: If the value of the FilterIndex property is lower than 1 or exceeds the number of file name filters, no filter will be applied.

See Also