SaveFileDialog.FilterIndex Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the index of the selected item in the Save as type drop-down list.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property FilterIndex As Integer
public int FilterIndex { get; set; }

Property Value

Type: System.Int32
The index of the selected item in the Save as type filter drop-down list. The default is 1.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The filter index is less than 1.

Remarks

The index is 1-based.

If you set the FilterIndex property, that filter will be selected when the dialog box is displayed.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.