FileDialog.FilterIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for