OpenFileDialog

public class OpenFileDialog
Similar to the System.Windows.Forms.OpenFileDialog, but with customized Rhino user interface.

Constructors

OpenFileDialog

#ExampleSince v5.0
public OpenFileDialog()
Create a new open file dialog.

Properties

DefaultExt

#Since v5.0
public string DefaultExt { get; set; }
The default file name extension. The returned string does not include the period.

FileName

#ExampleSince v5.0
public string FileName { get; set; }
Gets or sets a string containing the file name selected in the file dialog box.

FileNames

#Since v5.0
public string[] FileNames { get; }
Gets the names of all of the selected files in the dialog box

Filter

#ExampleSince v5.0
public string Filter { get; set; }
Gets or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box. See System.Windows.Forms.FileDialog for details.

InitialDirectory

#Since v5.0
public string InitialDirectory { get; set; }
Gets or sets the initial directory displayed by the file dialog box.

MultiSelect

#Since v5.0
public bool MultiSelect { get; set; }
Gets or sets a value indicating whether the dialog box allows multiple files to be selected

Title

#Since v5.0
public string Title { get; set; }
Gets or sets the file dialog box title.

Methods

ShowDialog

#Since v5.0 Obsolete v6.0
public DialogResult ShowDialog()
obsoleteUse ShowOpenDialog

ShowOpenDialog

#ExampleSince v5.10
public bool ShowOpenDialog()
Show the actual dialog to allow the user to select a file.
true if a file was selected. false if the dialog was canceled