FileDialog.setFilterIndex

Overview | Methods | This Package | All Packages

FileDialog.setFilterIndex

Sets a value representing the one-based index of the filter that is selected by default when the dialog box is opened.

Syntax

public final void setFilterIndex( int value )

Parameters

value

The one-based index of the filter to be selected in the Save as file type or Files of type box when the dialog box is opened. By default, the most recently selected filter is selected when the dialog box opens.

Remarks

Use the getFilterIndex method to return the one-based index of the currently selected filter. See the OpenFileDialog control topic for a code example using this method.

See Also   getFilterIndex