FileDialog.FilterIndex Property

Definition

Returns or sets an Integer indicating the default file filter of a file dialog box.

public:
 property int FilterIndex { int get(); void set(int value); };
public int FilterIndex { get; set; }
member this.FilterIndex : int with get, set
Public Property FilterIndex As Integer

Property Value

Remarks

If you try to set this property to a number greater than the number of filters, the last available filter will be selected.

The default filter determines the types of files that are displayed when the file dialog box is first opened.

Applies to