FileDialog.FilterIndex Property
Returns or sets an Integer indicating the default file filter of a file dialog box.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Property FilterIndex As Integer
Get
Set
'Usage
Dim instance As FileDialog
Dim value As Integer
value = instance.FilterIndex
instance.FilterIndex = value
int FilterIndex { get; set; }
Property Value
Type: System.Int32
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.