FileDialog Methods
Cancels the file dialog.
public void Cancel()
Opens the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.
public bool Open()
True if the open was successful, false if a warning was shown.
Saves to the selected file or the file from the input path. Returns true if successful, false if a warning is shown. Warning will be confirmed, fileDialog will stay open.
public bool Save()
True if the save was successful, false if a warning was shown.
Sets the file name and/or path to the parameter fileNameWithPath.
public FileDialog SetFileName(
string fileNameWithPath
)
Returns the same instance of the FileDialog on which the method is called, so that you can do
FileDialog.SetFileName(fileName).Save();
.Last modified 4yr ago