xtd 0.2.0
Loading...
Searching...
No Matches

◆ filter_index() [1/2]

virtual size_t xtd::forms::file_dialog::filter_index ( ) const
virtualnoexcept

Gets the index of the filter currently selected in the file dialog box.

Returns
A value containing the index of the filter currently selected in the file dialog box. The default value is 1.
Remarks
Use the filter_index property to set which filtering option is shown first to the user. You can also use the value of filter_index after showing the file dialog to perform special file operations depending upon the filter chosen.
Note
The index value of the first filter entry is 1.