OpenFileDialog Properties


The OpenFileDialog type exposes the following members.

  Name Description
Public property File Gets a FileInfo object for the selected file. If multiple files are selected, returns the first selected file.
Public property Files Gets a collection of FileInfo objects for the selected files.
Public property Filter Gets or sets a filter string that specifies the file types and descriptions to display in the OpenFileDialog.
Public property FilterIndex Gets or sets the index of the selected item in the OpenFileDialog filter drop-down list.
Public property InitialDirectory Gets or sets the directory displayed when the dialog starts.
Public property Multiselect Gets or sets a value that indicates whether the OpenFileDialog allows users to select multiple files.

Community Additions